[jboss-user] [JBossCache] - Re: Error while accessing cache through wrapper

bstansberry@jboss.com do-not-reply at jboss.com
Tue Jul 3 13:57:30 EDT 2007


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



More information about the jboss-user mailing list