/* (non-Javadoc)
  * @see org.jboss.system.ServiceMBeanSupport#startService()
  */
 @Override
 protected void startService() throws Exception {
   super.startService();
   if (persistentManagerImpl != null) {
     Object pm = ServerUtils.loadClass(persistentManagerImpl).newInstance();
     ContextUtils.bind(new InitialContext(), PersistentManager.JNDI_NAME, pm);
   }
 }
Exemplo n.º 2
0
 protected void startService() throws Exception {
   super.startService();
   log = Logger.getLogger(monitorName);
   if (alertListeners != null) {
     for (int i = 0; i < alertListeners.size(); i++) {
       ObjectName aname = (ObjectName) alertListeners.get(i);
       getServer().addNotificationListener(getServiceName(), aname, null, null);
     }
   }
   if (enabled) {
     startMonitorThread();
   }
 }
Exemplo n.º 3
0
 protected void stopService() throws Exception {
   scheduler.stopScheduler(timerIDCheckMD5, listenerID, timerListener);
   super.stopService();
 }
 /* (non-Javadoc)
  * @see org.jboss.system.ServiceMBeanSupport#stopService()
  */
 @Override
 protected void stopService() throws Exception {
   ContextUtils.unbind(new InitialContext(), PersistentManager.JNDI_NAME);
   super.stopService();
 }
 /* (non-Javadoc)
  * @see org.jboss.system.ServiceMBeanSupport#destroyService()
  */
 @Override
 protected void destroyService() throws Exception {
   this.delegate = null;
   super.destroyService();
 }
 /* (non-Javadoc)
  * @see org.jboss.system.ServiceMBeanSupport#createService()
  */
 @Override
 protected void createService() throws Exception {
   super.createService();
   this.delegate = new ApplicationServerImpl();
 }