public static void unregisterTransportMBean(String containerName) throws Exception {
  MBeanServer mBeanServer=getMBeanServer(containerName);
  if (mBeanServer == null)   return;
  ObjectName transportMBeanObjectName=TransportConstants.createTransportMBeanObjectName(containerName);
  if (mBeanServer.isRegistered(transportMBeanObjectName)) {
    mBeanServer.unregisterMBean(transportMBeanObjectName);
    if (_logger.isLoggable(Level.FINE)) {
      _logger.fine("Transport MBean was unregistered successfully.");
    }
  }
}

public static void unregisterTransportMBean ( String containerName ) throws Exception { MBeanServer mBeanServer = getMBeanServer ( containerName ) ; if ( mBeanServer == null ) return ; ObjectName transportMBeanObjectName = TransportConstants . createTransportMBeanObjectName ( containerName ) ; if ( mBeanServer . isRegistered ( transportMBeanObjectName ) ) { mBeanServer . unregisterMBean ( transportMBeanObjectName ) ; if ( _logger . isLoggable ( Level . FINE ) ) { _logger . fine ( "Transport MBean was unregistered successfully." ) ; } } }
release transport mbean registration .
