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)
There is a TreeCacheViewMBean interface in the core jar, but I don't see a TreeCacheMBean in the jars:
[jboss/server/all/lib] $ for x in *.jar ; do jar -tvf $x | egrep -i 'TreeCache.*?MBean' && ls -al $x && echo ; done 505 Mon May 04 15:48:18 EDT 2009 org/jboss/cache/TreeCacheViewMBean.class -rwxrwxr-x 1 test test 1164437 May 22 16:38 jbosscache-core.jar
TreeCacheMBean was deprecated in 2.x and removed in 3.x.
Look for CacheJmxWrapperMBean instead.