You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Vamsavardhana Reddy <c1...@gmail.com> on 2007/06/29 11:00:37 UTC

Configuring the MBeanServer with which Tomcat MBeans get registered

Hi,

I notice that if there is more than one registered MBeanServer in the JVM,
there is no way to configure the MBeanServer with which Tomcat registers its
MBeans.  IIUC, org.apache.tomcat.util.modeler.Registry.getMBeanServer() is
the method that hooks up the MBeanServer with which tomcat registers its
MBeans.  It is using the first one in the results from
MBeanServerFactory.findMBeanServer(null) which returns all the registered
MBeanServers.  If there are no MBeanServers, then it creates one. Is there a
way to configure the MBeanServer? In any case, I have created a bug report
http://issues.apache.org/bugzilla/show_bug.cgi?id=42759 and attached a patch
too.

Thanks and regards,
Vamsi