public void stop ( ) { MBeanServer server = ManagementFactory . getPlatformMBeanServer ( ) ; ObjectName beanName = null ; try { beanName = getObjectName ( ) ; server . unregisterMBean ( beanName ) ; } catch ( InstanceNotFoundException e ) { LOGGER . debug ( "JMX bean {0} not found" , beanName ) ; } catch ( Exception e ) { LOGGER . error ( e , JcrI18n . cannotUnRegisterMBean , beanName ) ; } }
Un - registers the bean from the JMX server .