[jboss-user] [JBoss Cache: Core Edition] - Getting the cache
Zero_Tolerance
do-not-reply at jboss.com
Wed May 13 01:40:21 EDT 2009
Hi,
I'm new to the jboss cache so this might be a trivial question for the most of you.
I have JBoss AS 5 and run the "all" profile.
In my EJB's I want to write and/or read from the sfsb-cache.
The problem is that I don't know how to get the cache as a Cache object.
As I understand I should get the CacheManager from the MBean server.
I have the following code:
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
And from here it is all a blur to me.
I could get ObjectNames with: server.queryNames(x,y) and then I have a Set of ObjectNames.
What should be the next step?
Kind regards,
Werner
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230655#4230655
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230655
More information about the jboss-user
mailing list