tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Rossbach>
Subject Re: Tomcat 5.5.26 - JMXAdaptorLifecycleListener issues
Date Thu, 21 Feb 2008 11:08:18 GMT
Hi Vishal,

I see the problems and think I can fix it.

At my test env  (Linux, Mac OS x) the Registry and Platform  
MBeanServer are the same.  I can see all Tomcat Mbeans at my jconsole.

Many thanks,

Am 16.02.2008 um 23:18 schrieb Vishal Goenka:

> 2. JMXAdaptorLifecycleListener registers the PlatformMBean server  
> with the
> registry whereas Tomcat's MBeans are registered with another MBean  
> server
> created using the apache common's modeler registry wrapper code. Hence
> Tomcat's MBeans don't show up in JConsole when you connect using  
> the URL
> that the JMXAdaptorLifecycleListener registers. I'm not entirely  
> sure of a
> clean way of doing this. A hack that seems to work is setting the
> PlatformMBeanServer as the MBean server to use for Tomcat  
> programmatically.
> In the constructor of JMXAdaptorLifecycleListener, adding the  
> following does
> the trick, but only if it is the first listener in the server.xml  
> file:
>         org.apache.commons.modeler.Registry.getRegistry(null,
> null).setMBeanServer(ManagementFactory.getPlatformMBeanServer());

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message