3 Replies Latest reply on Dec 30, 2004 12:15 PM by fredatwork

    Setup problem ?

    fredatwork Newbie


      I'm a newbie to JBoss Cache.

      I would like to access to the JBoss cache service inside a session bean through the following code lines (as indicated by a post of this forum):

      MBeanServer server = MBeanServerLocator.locate();
      TreeCacheMBean cache = (TreeCacheMBean)

      However, I fail setting up the JBoss cache service.

      I run JBoss 4.0.0 with 'all' configuration.

      I copied the replSync-service.xml file provided by the tutorial sample in the jboss deploy directory (trying to setup the JBoss cache service). But JBoss fails to do so :

      [ServiceConfigurator] Problem configuring service jboss.cache:service=TreeCache
      org.jboss.deployment.DeploymentException: No Attribute found with name: MaxCapacity
       at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:340)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:160)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:114)
       at org.jboss.system.ServiceController.install(ServiceController.java:200)

      Can anybody tell me what I'm doing wrong ?