public static void registerTransportMBean(String containerName){
  MBeanServer mBeanServer=getMBeanServer(containerName);
  if (mBeanServer == null)   return;
  TransportProtocolMonitorMBean transportConnectionsInfoMBean=new TransportProtocolMonitor();
  ObjectName objName=TransportConstants.createTransportMBeanObjectName(containerName);
  if (!mBeanServer.isRegistered(objName)) {
    try {
      mBeanServer.registerMBean(transportConnectionsInfoMBean,objName);
    }
 catch (    InstanceAlreadyExistsException e) {
      if (_logger.isLoggable(Level.CONFIG)) {
        _logger.config(alreadyRegistredTransportMBeanMessage + containerName + ">");
      }
    }
catch (    NotCompliantMBeanException e) {
      if (_logger.isLoggable(Level.WARNING)) {
        _logger.log(Level.SEVERE,failedTransportMBeanRegistrationMessagePrefix + containerName + ">",e);
      }
    }
catch (    MBeanRegistrationException e) {
      if (_logger.isLoggable(Level.SEVERE)) {
        _logger.log(Level.SEVERE,failedTransportMBeanRegistrationMessagePrefix + containerName + ">",e);
      }
    }
    if (_logger.isLoggable(Level.CONFIG)) {
      _logger.config(successfulTransportMBeanRegistrationMessage + containerName + ">");
    }
  }
 else {
    if (_logger.isLoggable(Level.CONFIG)) {
      _logger.config(alreadyRegistredTransportMBeanMessage);
    }
  }
}

public static void registerTransportMBean ( String containerName ) { MBeanServer mBeanServer = getMBeanServer ( containerName ) ; if ( mBeanServer == null ) return ; TransportProtocolMonitorMBean transportConnectionsInfoMBean = new TransportProtocolMonitor ( ) ; ObjectName objName = TransportConstants . createTransportMBeanObjectName ( containerName ) ; if ( ! mBeanServer . isRegistered ( objName ) ) { try { mBeanServer . registerMBean ( transportConnectionsInfoMBean , objName ) ; } catch ( InstanceAlreadyExistsException e ) { if ( _logger . isLoggable ( Level . CONFIG ) ) { _logger . config ( alreadyRegistredTransportMBeanMessage + containerName + ">" ) ; } } catch ( NotCompliantMBeanException e ) { if ( _logger . isLoggable ( Level . WARNING ) ) { _logger . log ( Level . SEVERE , failedTransportMBeanRegistrationMessagePrefix + containerName + ">" , e ) ; } } catch ( MBeanRegistrationException e ) { if ( _logger . isLoggable ( Level . SEVERE ) ) { _logger . log ( Level . SEVERE , failedTransportMBeanRegistrationMessagePrefix + containerName + ">" , e ) ; } } if ( _logger . isLoggable ( Level . CONFIG ) ) { _logger . config ( successfulTransportMBeanRegistrationMessage + containerName + ">" ) ; } } else { if ( _logger . isLoggable ( Level . CONFIG ) ) { _logger . config ( alreadyRegistredTransportMBeanMessage ) ; } } }
create management bean for jspace container .
