tomcat-users mailing list archives

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

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) {
            e.printStackTrace();
        }

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.

tia,
dani

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message