[jboss-cvs] JBossAS SVN: r65409 - trunk/cluster/src/main/org/jboss/ha/framework/server.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Sep 14 17:40:54 EDT 2007


Author: bstansberry at jboss.com
Date: 2007-09-14 17:40:54 -0400 (Fri, 14 Sep 2007)
New Revision: 65409

Modified:
   trunk/cluster/src/main/org/jboss/ha/framework/server/DistributedStateImpl.java
Log:
[JBAS-4726] DistributedStateImpl does not subclass ServiceMBeanSupport

Modified: trunk/cluster/src/main/org/jboss/ha/framework/server/DistributedStateImpl.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/framework/server/DistributedStateImpl.java	2007-09-14 21:40:09 UTC (rev 65408)
+++ trunk/cluster/src/main/org/jboss/ha/framework/server/DistributedStateImpl.java	2007-09-14 21:40:54 UTC (rev 65409)
@@ -42,7 +42,6 @@
 import org.jboss.cache.notifications.event.NodeModifiedEvent.ModificationType;
 import org.jboss.ha.framework.interfaces.HAPartition;
 import org.jboss.logging.Logger;
-import org.jboss.system.ServiceMBeanSupport;
 
 /**
  *   This class manages distributed state across the cluster.
@@ -54,7 +53,7 @@
  */
 @CacheListener
 public class DistributedStateImpl
-   extends ServiceMBeanSupport
+//   extends ServiceMBeanSupport
    implements DistributedStateImplMBean
 {
    // Constants -----------------------------------------------------
@@ -126,31 +125,23 @@
 
    protected void createService() throws Exception
    {
-      super.createService();
+//    super.createService();
    }
 
    public void startService() throws Exception
    {
-      super.startService();
+//      super.startService();
    }
 
    public void stopService() throws Exception
    {
-      super.stopService();
-      // JBCLUSTER-38 move to destroy
-//      Registry.unbind (this.name);
-//      ObjectName jmxName = new ObjectName(this.name);
-//      mbeanServer.unregisterMBean (jmxName);
+//      super.stopService();
    }
    
    public void destroyService() throws Exception
    {
-      super.destroyService();
-      cache.removeCacheListener(this);
-//      Registry.unbind (this.name);
-//      ObjectName jmxName = new ObjectName(this.name);
-//      mbeanServer.unregisterMBean (jmxName);
-      
+//      super.destroyService();
+      cache.removeCacheListener(this);      
    }
 
    public String listContent () throws Exception




More information about the jboss-cvs-commits mailing list