This content has been marked as final.
Show 2 replies
-
1. Re: Error while accessing cache through wrapper
brian.stansberry Jul 3, 2007 1:57 PM (in response to madhavsapre)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. -
2. Re: Error while accessing cache through wrapper
madhavsapre Jul 3, 2007 2:11 PM (in response to madhavsapre)Thanks a lot.
It worked.