This content has been marked as final.
Show 2 replies
-
1. Re: find mbean server - example of code not JBoss specific.
dimitris Jan 16, 2007 1:30 PM (in response to michele.curioni)Maybe MBeanServerFactory.findMBeanServer("jboss");
-
2. Re: find mbean server - example of code not JBoss specific.
michele.curioni Jan 17, 2007 5:50 AM (in response to michele.curioni)MBeanServerFactory.findMBeanServer(String); requires the MBeanServerId attribute of its delegate MBean, which I don't think is "jboss".
It's more likely something built at runtime and specific to the process running JBoss.
Your suggestion applies to the MBeanServer.getDefaultDomain() though, which can be "jboss".
So I would have to loop through all the MBeanServer returned by the factory, and check the domain.
Does that sound reasonable?
Thanks,
Michele