tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Johnson <>
Subject Automatic custom MBean registration?
Date Mon, 25 Apr 2005 17:37:30 GMT
Does Tomcat have a mechanism for automatically registering custom MBeans?

Currently I've written code that uses the MBeanServerFactory to locate the MBeanServer,
and then I instantiate my objects, and register them with the MBeanServer. I've successfully
this technique, and can access my custom MBeans via the JMXProxy that is built into Tomcat.

I've read and compared the Tomcat 5.0 and 5.5 documents at:

I noticed that in 5.5 there is no longer a discussion of including an entry for

I do not understand the purpose of the mbeans-descriptor.xml. I assumed it was so that using
this file, I could define what my MBean is, and have Tomcat load and register my MBean.
But I couldn't get it to work. I created an mbeans-descriptor.xml file, and placed it in
the package where my class files are located. But....then nothing happens. Am I wrong to
think that based on the inclusion of this XML file that Tomcat will load and register my
MBeans? Or do you have to do it the way I looking up the MBeanServer and then
registering the beans through my own code?

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message