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

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Oct 30 16:21:14 EST 2006


Author: jerrygauth
Date: 2006-10-30 16:21:13 -0500 (Mon, 30 Oct 2006)
New Revision: 57926

Modified:
   trunk/cluster/src/main/org/jboss/ha/framework/server/DistributedStateImpl.java
Log:
JBAS-3795, relocated registration of TreeCache listener

Modified: trunk/cluster/src/main/org/jboss/ha/framework/server/DistributedStateImpl.java
===================================================================
--- trunk/cluster/src/main/org/jboss/ha/framework/server/DistributedStateImpl.java	2006-10-30 19:05:44 UTC (rev 57925)
+++ trunk/cluster/src/main/org/jboss/ha/framework/server/DistributedStateImpl.java	2006-10-30 21:21:13 UTC (rev 57926)
@@ -125,7 +125,7 @@
    protected void createService() throws Exception
    {
       super.createService();
-      cache.addTreeCacheListener(this);
+      //cache.addTreeCacheListener(this);
    }
 
    public void startService() throws Exception
@@ -218,7 +218,8 @@
 
    public void setTreeCache(TreeCacheMBean cache)
    {
-      this.cache = cache;      
+      this.cache = cache;
+      this.cache.addTreeCacheListener(this);
    }
 
    // DistributedState implementation ----------------------------------------------




More information about the jboss-cvs-commits mailing list