[jboss-cvs] JBossAS SVN: r63189 - branches/JBoss_4_0_3_SP1_CP/tomcat/src/main/org/jboss/web/tomcat/tc5/session.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed May 23 01:52:47 EDT 2007


Author: tkimura at redhat.com
Date: 2007-05-23 01:52:46 -0400 (Wed, 23 May 2007)
New Revision: 63189

Modified:
   branches/JBoss_4_0_3_SP1_CP/tomcat/src/main/org/jboss/web/tomcat/tc5/session/JBossCacheService.java
Log:
[JBAS-2927] Remove session from local map when the session is invalidated on the other node.

Modified: branches/JBoss_4_0_3_SP1_CP/tomcat/src/main/org/jboss/web/tomcat/tc5/session/JBossCacheService.java
===================================================================
--- branches/JBoss_4_0_3_SP1_CP/tomcat/src/main/org/jboss/web/tomcat/tc5/session/JBossCacheService.java	2007-05-23 04:14:47 UTC (rev 63188)
+++ branches/JBoss_4_0_3_SP1_CP/tomcat/src/main/org/jboss/web/tomcat/tc5/session/JBossCacheService.java	2007-05-23 05:52:46 UTC (rev 63189)
@@ -653,7 +653,16 @@
 
    public void nodeRemoved(Fqn fqn)
    {
-      nodeDirty(fqn);
+      if(!needToHandle(fqn))
+         return;
+      String realId = getIdFromFqn(fqn);
+      ClusteredSession session = manager_.findLocalSession(realId);
+      if (session != null) {
+          // JBAS-2927 Need to expire this session
+          boolean notify = true;
+          boolean expireLocally = true;
+          session.expire(notify, expireLocally);
+      }
    }
 
    /**




More information about the jboss-cvs-commits mailing list