public static void registerLocalTimeMBean(String containerName){
  MBeanServer mBeanServer=getMBeanServer(containerName);
  if (mBeanServer == null)   return;
  LocalTimeMBean localTimeMBean=new LocalTime();
  ObjectName objName=LocalTimeConstants.MBEAN_NAME;
  if (!mBeanServer.isRegistered(objName)) {
    try {
      mBeanServer.registerMBean(localTimeMBean,objName);
    }
 catch (    InstanceAlreadyExistsException e) {
    }
catch (    NotCompliantMBeanException e) {
      if (_logger.isLoggable(Level.WARNING)) {
        _logger.log(Level.SEVERE,failedLocalTimeMBeanRegistrationMessagePrefix + containerName + ">",e);
      }
    }
catch (    MBeanRegistrationException e) {
      if (_logger.isLoggable(Level.SEVERE)) {
        _logger.log(Level.SEVERE,failedLocalTimeMBeanRegistrationMessagePrefix + containerName + ">",e);
      }
    }
    if (_logger.isLoggable(Level.CONFIG)) {
      _logger.config(successfulTransportMBeanRegistrationMessage + containerName + ">");
    }
  }
}

public static void registerLocalTimeMBean ( String containerName ) { MBeanServer mBeanServer = getMBeanServer ( containerName ) ; if ( mBeanServer == null ) return ; LocalTimeMBean localTimeMBean = new LocalTime ( ) ; ObjectName objName = LocalTimeConstants . MBEAN_NAME ; if ( ! mBeanServer . isRegistered ( objName ) ) { try { mBeanServer . registerMBean ( localTimeMBean , objName ) ; } catch ( InstanceAlreadyExistsException e ) { } catch ( NotCompliantMBeanException e ) { if ( _logger . isLoggable ( Level . WARNING ) ) { _logger . log ( Level . SEVERE , failedLocalTimeMBeanRegistrationMessagePrefix + containerName + ">" , e ) ; } } catch ( MBeanRegistrationException e ) { if ( _logger . isLoggable ( Level . SEVERE ) ) { _logger . log ( Level . SEVERE , failedLocalTimeMBeanRegistrationMessagePrefix + containerName + ">" , e ) ; } } if ( _logger . isLoggable ( Level . CONFIG ) ) { _logger . config ( successfulTransportMBeanRegistrationMessage + containerName + ">" ) ; } } }
create management bean for jspace container .
