Jarva55,

You're creating a new MBeanServer and trying to find the tree cache there, 
which certainly isn't going to work.

Try

MBeanServer server = MBeanServerFactory.findMBeanServer("jboss");

Also, if you're using the MBeanServerLocator approach, it's better to call 
locateJBoss() instead of just locate().  With JDK 5 if you start another 
MBeanServer, for example with the -Dcom.sun.management.jmxremote switch, 
MBeanServerLocator.locate() will return that server, not the one JBoss is using.

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

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


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to