This content has been marked as final. Show 2 replies
List list = MBeanServerFactory.findMBeanServer(null);
This is going to return you the MBeanServer on the local JVM. If you want to access a MBeanServer on a remote server, see the section "Using the RMIAdaptor" at:
Remember to pass the correct InitialContext properties.
Having said this, i personally haven't tried it, so am not sure whether its possible to have a remote listener (running in a different JVM) for the notifications emitted by the MBeanServer.
Thanks a lot, jaikiran!!!
I'll try it!
If it doesn't work, do you have another suggestion?