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

bstansberry@jboss.com do-not-reply at jboss.com
Thu May 17 10:16:14 EDT 2007


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/docs/1.4.1/TreeCache/en/html/jboss_integration.html#d0e2757 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#4046500

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



More information about the jboss-user mailing list