public static void unregister ( String name ) { try { ManagementFactory . getPlatformMBeanServer ( ) . unregisterMBean ( new ObjectName ( name ) ) ; } catch ( Exception e ) { LoggerFactory . getLogger ( Jmx . class ) . warn ( "Can not unregister MBean [{}]" , name , e ) ; } }
Unregister a MBean from JMX server . Errors are ignored and logged as warnings .