We have this code based on what's in the documentation, in order to get our cache
(deployed using the jmx microcontainer) and return it to our application code:
final MBeanServer server = MBeanServerLocator.locateJBoss();
final ObjectName objectName = new ObjectName(sCacheName);
@SuppressWarnings("unchecked")
final CacheJmxWrapperMBean<String, Object> cacheWrapper =
(CacheJmxWrapperMBean<String, Object>)
MBeanServerInvocationHandler.newProxyInstance(
server, objectName, CacheJmxWrapperMBean.class, true);
sCache = cacheWrapper.getCache();
return sCache;
But CacheJmxWrapperMBean is deprecated.
What's the correct way to get the cache now?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215485#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...