[jboss-user] [JBoss Cache: Core Edition] - Re: How to get cache size programmatically
It appears that CacheJmxWrapper and CacheJmxWrapperMBean are deprecated in jbosscache-core-3.1.0.GA View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243728#4243728 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243728 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - Re: How to get cache size programmatically
Thanks for the reply. My application is deployed in tomcat6. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243631#4243631 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243631 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Cache: Core Edition] - How to get cache size programmatically
Hi, I am using jboss cache core 3.1.0 and want to display cache size (the number of nodes in it). But looking at APIs, Cache doesn't support method to get this information, however this is available in CacheSPI. But I can not use this interface directly in my code as per documentation anonymous wrote : A reference to this interface should only be obtained when it is passed in to your code, for example when you write an CommandInterceptor or CacheLoader. You should NEVER attempt to directly cast a Cache instance to this interface. In future, the implementation may not allow it. | As I am not using CacheLoader and I dont want to write CommandInterceptor how this can be done? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241920#4241920 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241920 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user