[jboss-user] [JBoss Cache] - Question about TreeCacheMBean when moving from cache 1.2.3 to 3.2.5

Galder Zamarreno do-not-reply at jboss.com
Mon Jun 14 06:33:26 EDT 2010


Galder Zamarreno [http://community.jboss.org/people/galder.zamarreno%40jboss.com] replied to the discussion

"Question about TreeCacheMBean when moving from cache 1.2.3 to 3.2.5"

To view the discussion, visit: http://community.jboss.org/message/547769#547769

--------------------------------------------------------------
That's because the JMX interface is not meant to replicate what cache interface offers. It's meant for monitoring and management.

Instead, either start the cache programatically and pass around Cache references, or bind CacheManager to local JNDI and then retrieve a Cache from it. Sample code on binding a cache manager to local JNDI can be found in  http://anonsvn.jboss.org/repos/jbossas/projects/cluster/ha-server-cache-jbc/trunk/src/main/java/org/jboss/ha/cachemanager/CacheManager.java http://anonsvn.jboss.org/repos/jbossas/projects/cluster/ha-server-cache-jbc/trunk/src/main/java/org/jboss/ha/cachemanager/CacheManager.java 

--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/547769#547769]

Start a new discussion in JBoss Cache at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2052]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100614/ea7bba49/attachment-0001.html 


More information about the jboss-user mailing list