question: private static void unregisterMbeansFromPropsFile ( MBeanServer mBeanServer ) throws Exception { JamonPropertiesLoader loader = new JamonPropertiesLoader ( ) ; List < String > jamonJmxBeanProperties = loader . getMxBeans ( ) ; Iterator < String > iter = jamonJmxBeanProperties . iterator ( ) ; while ( iter . hasNext ( ) ) { String beanInfo = iter . next ( ) ; MonitorMXBean mXbean = MonitorMXBeanFactory . create ( beanInfo ) ; mBeanServer . unregisterMBean ( MonitorMXBeanFactory . getObjectName ( mXbean ) ) ; MonitorMXBean mXbeanDelta = MonitorMXBeanFactory . createDelta ( beanInfo ) ; mBeanServer . unregisterMBean ( MonitorMXBeanFactory . getDeltaObjectName ( mXbeanDelta ) ) ; } }
target:  Read the properties file and unregister its configurable jamon jmx beans.  Note if the file has changed since the server was brought up the beans unregistered might not match those that were loaded.