[jboss-user] [JBoss Cache: Core Edition] - Re: Where is the TreeCacheMBean class?

snacker do-not-reply at jboss.com
Wed Aug 5 22:00:00 EDT 2009

I think they removed it from the 3.1.0 cache api's.
What we had to do was this:

  | CacheFactory factory = new DefaultCacheFactory();     
  | Cache cache = factory.createCache("mycache-service.xml");    
  | MBeanServer server = MBeanServerLocator.locate();
  | ObjectName on = new ObjectName( "jboss.cache:service=MyCache" );
  | JmxRegistrationManager jmxManager = new JmxRegistrationManager(server, cache, on);
  | jmxManager.registerAllMBeans();

If it did exist I would expect it to be in either jbosscache-core.jar or jbosscache-pojo.jar, but I don't see it in either of those.

(Don't take this as the final word though)

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4248275#4248275

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4248275

More information about the jboss-user mailing list