/** * Coordinates between createService() and postRegister(), * registering the barrier when both the barrier is * created and the mbeanserver is available * * @throws Exception */ private void initBarrier() throws Exception { if (barrier != null && getServer() != null) { // register with the MBeanServer getServer().registerMBean(barrier, barrierName); // implicitly call the ServiceController barrier.create(); // conditionally start the barrier if (getBarrierEnabledOnStartup().booleanValue()) { startBarrier(); } // subscribe for notifications subscribe(getDynamicSubscriptions().booleanValue()); } }
/** * Coordinates between createService() and postRegister(), * registering the barrier when both the barrier is * created and the mbeanserver is available * * @throws Exception */ private void initBarrier() throws Exception { if (barrier != null && getServer() != null) { // register with the MBeanServer getServer().registerMBean(barrier, barrierName); // implicitly call the ServiceController barrier.create(); // conditionally start the barrier if (getBarrierEnabledOnStartup().booleanValue()) { startBarrier(); } // subscribe for notifications subscribe(getDynamicSubscriptions().booleanValue()); } }