List of usage examples for javax.management MBeanServerFactory createMBeanServer
public static MBeanServer createMBeanServer(String domain)
Return a new object implementing the MBeanServer interface with the specified default domain name.
From source file:org.wso2.andes.server.management.JMXManagedObjectRegistry.java
public JMXManagedObjectRegistry() throws AMQException { _log.info("Initialising managed object registry using jplatform MBean server"); IApplicationRegistry appRegistry = ApplicationRegistry.getInstance(); // Retrieve the config parameters _useCustomSocketFactory = appRegistry.getConfiguration().getUseCustomRMISocketFactory(); boolean platformServer = appRegistry.getConfiguration().getPlatformMbeanserver(); _mbeanServer = platformServer ? ManagementFactory.getPlatformMBeanServer() : MBeanServerFactory.createMBeanServer(ManagedObject.DOMAIN); }