[newbie] Creating MBeanServer differently
Hi, I noticed that if I create a MBeanServer as
MBeanServer server = MBeanServerFactory.createMBeanServer();
I can't see my mbean into the jconsole, even when passing the-Dcom.sun.management.jmxremote property, but I'd see it with an adaptor registered with the MBean server.
In order to see my MBean in the management console, I have to create it with:
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
I'd like your opinion about a possible framework. Would it be ok to get the platform MBean server and register all MBeans with that, or it's better to leave the platform MBean server for JVM stuff and create our own connector for implementation specific MBeans?
Thanks

