[jboss-cvs] JBossAS SVN: r78729 - branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/service/session/notification.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sat Sep 20 17:49:56 EDT 2008


Author: bstansberry at jboss.com
Date: 2008-09-20 17:49:56 -0400 (Sat, 20 Sep 2008)
New Revision: 78729

Modified:
   branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/service/session/notification/LegacyClusteredSessionNotificationPolicy.java
Log:
[JBAS-5778] Legacy behavior didn't notify on failover

Modified: branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/service/session/notification/LegacyClusteredSessionNotificationPolicy.java
===================================================================
--- branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/service/session/notification/LegacyClusteredSessionNotificationPolicy.java	2008-09-20 20:07:39 UTC (rev 78728)
+++ branches/Branch_4_2/tomcat/src/main/org/jboss/web/tomcat/service/session/notification/LegacyClusteredSessionNotificationPolicy.java	2008-09-20 21:49:56 UTC (rev 78729)
@@ -67,7 +67,7 @@
    public boolean isHttpSessionListenerInvocationAllowed(ClusteredSessionManagementStatus status,
          ClusteredSessionNotificationCause cause, boolean local)
    {
-      return status.isLocallyUsed();
+      return status.isLocallyUsed() && !ClusteredSessionNotificationCause.FAILOVER.equals(cause);
    }
 
 }




More information about the jboss-cvs-commits mailing list