1 Reply Latest reply on Feb 20, 2009 7:12 PM by Brian Stansberry

    configuration of cache when moving from JBoss 4.2.3 to JBoss

    jose vasco Newbie

      Hi all.

      I have a EJB3 based app running in JBoss 4.2.3. I'm trying to move it to JBoss 5, but I'm having problems with the new cache configuration.

      I'm trying to configure it via jBoss microcontainer as seen in documentation:


      Should it be configured in jboss-cache-manager-jboss-beans.xml ? Or a separate file ?

      Then i'm trying to access it (with no success) like I was doing in JBoss 4.2.3 :

      MBeanServer mbserver = MBeanServerLocator.locateJBoss();
      ObjectName objName = new ObjectName("my.cache:service=MyCache");
      myCache = (Cache) mbserver.getAttribute(objName, "Instance");

      I suspect that the cache is not even being created because I can't see it via jmx-console. It used to appear in JBoss 4.

      After reading the documentation, I'm not getting it to work in JBoss 5.

      Thanks in advance!