public void init(){
  MBeanServer mbs=ManagementFactory.getPlatformMBeanServer();
  try {
    mbs.registerMBean(this,new ObjectName(MBEAN_NAME));
  }
 catch (  JMException e) {
    throw new RuntimeException(e);
  }
}

public void init ( ) { MBeanServer mbs = ManagementFactory . getPlatformMBeanServer ( ) ; try { mbs . registerMBean ( this , new ObjectName ( MBEAN_NAME ) ) ; } catch ( JMException e ) { throw new RuntimeException ( e ) ; } }
gets platform mbeanserver and register current mbean . therefore , can find it by jmx client from local or remote .
