"Kausch Thomas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> With JkMX it is possible to register an HttpAdaptor and JRMPAdaptor from
MX4J. We want to register our own JMXConnector MBean when tomcat is started.
Is there a smart way how to do this? We are looking for a general hook where
we could register default MBeans on Tomcat startup.
>

I'd probably go with a SeverlContextListener (possibly with a singleton).
It really depends on how your app is designed.

> Moreover how can WebApplications register their own MBeans in Tomcat. How
can they get a reference to Tomcat's MBean server instance?
>

If you are using TC 4.1.x, then you'll need to move the jmx jar files to
$CATALINA_HOME/common/lib from $CATALINA_HOME/server/lib.  If you are
planning to use commons-modeler for JMX access, then you need to move that
jar as well (also true for TC 5.0.x).  Otherwise, you should be able to
access Tomcat's MBean server as normal from the MBeanServerFactory class.

> Any comments would be useful.
>
> Thanks,
> Tom




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to