/* (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);
   }
 }
Example #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();
   }
 }