Hi, I went through the some source codes to understand Tomcat's JMX implementation. Here are some of the things as I understood. Please correct me if I am wrong.
1. As I understood it uses a commons modeler type implementation (which I saw within a comment and went to explore). 2. Uses Dynamic MBeans and BaseModelBeans (extension of DynamicMBeans) 3. Uses ManagedBean class to store meta data about a bean and instantiate it. 4. Uses Registry to load ManagedBeans from meta-data files and register the MBean with the MBean server. 5. MBeanFactory class contains all the useful methods to create most of the Tomcat components along with the MBeans. I noticed the MBeanFactory class methods are not utilised inside Tomcat internal codes to create Tomcat server side components. Is this because that it is only meant to be used remotely? Regarding the missing createStandardService() in MBeanFactory, issue, I looked as to how normally StarndardService is created within Tomcat. I noticed that the Service component is created using configuration data read by server.xml using a Digester. Now do you think a similar approach can be utilized to provide the missing method? (But this approach misses the point of configuring a Tomcat instance from the scratch without configuration files. Isn't it?). What were the issues with ServerFactory that it had to be removed? Regards, Chamith