[jboss-user] [JBossCache] - How to access TreeCache from MBean ?

raameshwar do-not-reply at jboss.com
Tue Mar 27 11:19:01 EDT 2007


Hi , 

 I am new to both JBoss Cache and MBeans.

 I am trying to deploy JBoss TreeCache as MBean in Sun Java Application Server 9. I am able to deploy it and start successfully and i am able to access the cache through the following code.

ObjectInstance object = server.getObjectInstance(name);
TreeCache cache = (TreeCache)server.instantiate(object.getClassName(),null);
cache.createService();
cache.put("/a/b/c", map);

The problem i face is, i cannot access the same instance of cache if i access the MBean from other applications. What is the api i should use if i want to access the JBoss Cache from different applications.  The server.instantiate() method always gives a new instance.  

Any pointers would be of great help.

Thanks,
Raameshwar.



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

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



More information about the jboss-user mailing list