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