[jboss-user] [JBossCache] - JBossCache on JBoss Application Server

alohamojo do-not-reply at jboss.com
Thu May 17 07:17:08 EDT 2007


Hi,

I want to run JBossCache on JBoss AS, and i have done as the guide "Running JBoss Cache within JBoss Application Server". That means i have copied jboss-cache.jar to /lib folder and configuration file to /deploy folder. And at client side, i created a class like this:
...
MBeanServer server=MBeanServerLocator.locateJBoss();
PojoCacheMBean cache;			cache=(PojoCacheMBean)MBeanProxyExt.create(PojoCacheMBean.class, "jboss.cache:service=TreeCache", server);
...

But when i ran this class, it report an error: 
java.lang.IllegalStateException: No 'jboss' MBeanServer found!
	at org.jboss.mx.util.MBeanServerLocator.locateJBoss(MBeanServerLocator.java:110)

What was i wrong ?
Please give me the detail how to deploy JBossCache on JBoss AS.

Thanks

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046449#4046449

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046449



More information about the jboss-user mailing list