4 Replies Latest reply on Nov 28, 2005 7:22 AM by Ben Wang

    How to use TreeCache inside JBoss

    Jasmine Wong Newbie

      I have followed the directions to use TreeCache inside JBoss. I put the jboss-cache.jar and jgroups.jar in jboss-4.0.0\jboss-4.0.0\server\default\lib directory and the tree-service.xml in the jboss-4.0.0\jboss-4.0.0\server\default\deploy directory. I also add the

      <!-- The JRMP invoker proxy configuration for the Tree CACHE Service -->

      jboss:service=invoker,type=jrmp
      jboss.cache:service=TreeCache
      MyCache
      org.jboss.cache.TreeCacheMBean


      org.jboss.proxy.ClientMethodInterceptor
      org.jboss.proxy.SecurityInterceptor
      org.jboss.jmx.connector.invoker.client.InvokerAdaptorClientInterceptor
      org.jboss.invocation.InvokerInterceptor




      in the jmx-invoker-service.xml in the jboss-4.0.0\jboss-4.0.0\server\default\deploy. JBoss started out fine. My question is are there any example applications (Session Beans) that I can use as a reference to see how to use TreeCache in JBoss? Do I need to instantiate a TreeCache each time?

      Thanks!