This interface is a representative for the javax.management.MBeanServer object. It only
contains the COMPONENT_URL for use when application code wants to acess javax.management.MBeanServer
(eg. in order to add or remove MBean without worrying about the make and model of the JMX and the name of the MBean server)
This mechanism (similarly to JTA and JDBC access mechanism) is here to separate MetaBoss generated code from
actual platform specifics and delegate the decision on which MBean server to use and how to obtain it to the
deployment SPI libraries. To access MBeanServer object in platform independent way :
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.management.MBeanServer;
...............................
...............................
Context lContext = new javax.naming.InitialContext();
MBeanServer lMBeanServer = (MBeanServer)lContext.lookup(com.metaboss.enterprise.management.MBeanServer.COMPONENT_URL);
|