You registered a PojoCacheJmxWrapper, not a CacheJmxWrapper.

You need to do this:


  | cacheWrapper = (PojoCacheJmxWrapperMBean) 
MBeanProxyExt.create(PojoCacheJmxWrapperMBean.class, 
"jboss.cache:service=POJOCache", server); 
  | CacheStatus status = cacheWrapper.getCacheStatus();
  | System.out.println("Cache Status is " + status);
  | cache = cacheWrapper.getPojoCache(); 


BTW, you can never cast from Cache to PojoCache.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4060092
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to