You are hitting the issue discussed at
http://jira.jboss.com/jira/browse/JBCACHE-1047. If
you were using code built from the latest HEAD you could:
...
| CacheJmxWrapper wrapper = new CacheJmxWrapper(myCache);
| wrapper.setManageCacheLifecycle(true);
| JmxUtil.registerCacheMBean(mBeanServer, wrapper, mBeanNameStr);
| ...
This thread though makes me realize that that's still pretty broken, although it
should work fine for your use case. See
http://jira.jboss.com/jira/browse/JBCACHE-1058
for how discussion of how it's still broken.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045925#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...