1 Reply Latest reply on May 13, 2009 5:58 AM by Werner van Mook

    Getting the cache

    Werner van Mook Newbie


      I'm new to the jboss cache so this might be a trivial question for the most of you.

      I have JBoss AS 5 and run the "all" profile.
      In my EJB's I want to write and/or read from the sfsb-cache.
      The problem is that I don't know how to get the cache as a Cache object.
      As I understand I should get the CacheManager from the MBean server.

      I have the following code:

      MBeanServer server = ManagementFactory.getPlatformMBeanServer();

      And from here it is all a blur to me.

      I could get ObjectNames with:
      and then I have a Set of ObjectNames.

      What should be the next step?

      Kind regards,