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: [email protected]
For additional commands, e-mail: [email protected]