Tuesday, July 4, 2006 04:27 AM
I am trying to test the createService method of a mbean as it
contains logic to load persited attributes from the
database. I am running the Junit tests through eclipse
3.1. I am having trouble obtaing the MBean server as the
following bit of code throws an out of bound exception
mbs = (MBeanServer)MBeanServerFactory.findMBeanServer(null).get(0);
This tells me that no mbean servers are registered on the JVM.
is there something I need to configure before I invoke the findMBeanServer method?