MBeanServerLocator.locateJBoss() only works inside the AS itself, not remotely.
Have a look at Section 13.1 of
http://labs.jboss.com/file-access/default/members/jbosscache/freezone/doc...
which will tell you how to bind a proxy to your cache into JNDI. Note the example uses
TreeCacheMBean as the interface; you'd use PojoCacheMBean.
You'd then access the cache from the remote client using:
| Hashtable env = .... configure your naming env or use jnid.properties
| InitialContext ctx = new InitialContext(env);
| PojoCacheMBean cache = (PojoCacheMBean) ctx.lookup("MyCache");
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046500#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...