Beispiel #1
0
 public void unprepareServerPluginService() throws Exception {
   if (serverPluginService != null) {
     serverPluginService.stopMasterPluginContainer();
     serverPluginService.stop();
     getJBossMBeanServer().unregisterMBean(ServerPluginService.OBJECT_NAME);
     serverPluginService = null;
   }
 }
Beispiel #2
0
  public void unprepareServerPluginService() throws Exception {
    if (serverPluginService != null) {
      serverPluginService.stopMasterPluginContainer();
      serverPluginService.stop();
      serverPluginService = null;
    }

    MBeanServer mbs = getPlatformMBeanServer();
    if (mbs.isRegistered(ServerPluginService.OBJECT_NAME)) {
      mbs.unregisterMBean(ServerPluginService.OBJECT_NAME);
    }
  }