On 31/03/2010 12:48, buddhika chamith wrote:
> 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?
Correct.

> 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?).
Take a look in the svn history. The removed method will give you some clues.

> What were the issues with ServerFactory that it had to be
> removed?
It assumed that there was only ever one Server instance in a JVM and as
a result created all sorts of issues, particularly when embedding Tomcat.

Mark



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to