public void register ( ) throws ManagementException { try { DynamicMBean dynamicMBean = new IntrospectedDynamicMBean ( mBean ) ; mBeanServer . registerMBean ( dynamicMBean , mBeanObjectName ) ; } catch ( Exception e ) { throw new ManagementException ( e ) ; } }
Register the MXBean . If the registration fails a WARN message is logged