tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Guggi <>
Subject How to configure custom MBeans
Date Fri, 01 Apr 2011 17:42:55 GMT

I'm trying to configure custom MBeans by creating an
MBeanInterface+Impl and putting the jar into tomcat's lib-dir.

I manged to create the mbean using jmx-direclty like the following
(exected from within a LifecycleListener):

MBeanServer server = getServer();
        ObjectName name = null;
        try {
            name = new ObjectName("test:Name=test");
            server.registerMBean(this, name);
        } catch (Exception e) {

however I'd like to use the "modeler-way" (mbeans-descriptor.xml),
because I want to see mbean-descriptions (for operations, paramters
etc.) when using jconsole.
I can't get this to work - the documentation doesn't help a lot here...

BTW. I'm using tomcat6.


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

View raw message