Does jconsole support monitoring of MBeans registered to New MBean Server?

I see that jconsole is displaying the MBeans registered to Platform MBean Server (obtained through java.lang.ManagementFactory.getPlatformMBeanServer()) but not the MBeans that are registered to a newly created MBean Server (created using javax.management.MBeanServerFactory.createMBeanServer()).

Is there a way through which I can view the MBeans registered to newly created MBean Server in the jconsole?

[418 byte] By [keerthi5678a] at [2007-10-3 6:55:54]
# 1

You can create a connector server using the JMX Remote API (javax.management.remote). If you have already configured your app to allow jconsole to access it in the default way, probably the easiest thing to do now is to follow the instructions in Luis-Miguel's blog at <http://blogs.sun.com/lmalventosa/date/20060602>. Just replace the reference to ManagementFactory.getPlatformMBeanServer() with your own MBeanServer reference.

emcmanusa at 2007-7-15 1:47:48 > top of Java-index,Core,Monitoring & Management...
# 2

Thank you for the information emcmanus.

So what I understand is that the jconsole if opened in a normal way (i.e. Local), it loads MBeans by looking up the Platform MBean Server.

All the MBeans belonging to other MBean Servers or custom created MBean Servers can be managed & monitored if jconsole is loaded using Advanced option (i.e. providing JMX URL) and with the help of remote connectors.

When I open Platform MBean Server, I dont see MBeans of other MBean Server and vice versa. (I think they are mutually exclusive).

Please correct me if what I have mentioned above is incorrect.

One confusing thing is that I see "JVImplementation" MBean is available when I open jconsole with either of the two option mentioned above.

Is there any specific reason for that?

Is that MBean part of Platform MBean Server or some other MBean Server?

keerthi5678a at 2007-7-15 1:47:48 > top of Java-index,Core,Monitoring & Management...
# 3

You are right: the PlatformMBeanServer is distinct from any MBeanServer obtained by calling MBeanServerFactory.newMBeanServer() or .createMBeanServer() yourself. MBeans registered in one will not appear in the other.

The MBean called JMImplementation:type=MBeanServerDelegate is special. It is required to be present in every MBeanServer. The instance that is present in each MBeanServer is different, though.

emcmanusa at 2007-7-15 1:47:48 > top of Java-index,Core,Monitoring & Management...