Here you can find the source of createMBeanServer()
MBeanServer
with which we will be registering our ModelMBean
implementations.
static synchronized MBeanServer createMBeanServer()
//package com.java2s; import javax.management.MBeanServer; import javax.management.MBeanServerFactory; public class Main { /** The default MBeanServer domain name is "GemFire" */ private static final String DEFAULT_DOMAIN = "GemFire"; /** The <code>MBeanServer</code> for this application */ private static MBeanServer mbeanServer; /**/*from w w w . ja v a2 s.c om*/ * Create and configure (if necessary) and return the <code>MBeanServer</code> * with which we will be registering our <code>ModelMBean</code> * implementations. * * @see javax.management.MBeanServer */ static synchronized MBeanServer createMBeanServer() { if (mbeanServer == null) { mbeanServer = MBeanServerFactory .createMBeanServer(DEFAULT_DOMAIN); } return mbeanServer; } }