tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kfuj...@apache.org
Subject svn commit: r1446077 - /tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java
Date Thu, 14 Feb 2013 09:16:13 GMT
Author: kfujino
Date: Thu Feb 14 09:16:12 2013
New Revision: 1446077

URL: http://svn.apache.org/r1446077
Log:
Use Manager#changeSessionId method to change session ID.

Modified:
    tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java

Modified: tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java?rev=1446077&r1=1446076&r2=1446077&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java (original)
+++ tomcat/trunk/java/org/apache/catalina/ha/session/JvmRouteBinderValve.java Thu Feb 14 09:16:12
2013
@@ -349,17 +349,8 @@ public class JvmRouteBinderValve extends
     protected void changeSessionID(Request request, String sessionId,
             String newSessionID, Session catalinaSession) {
         fireLifecycleEvent("Before session migration", catalinaSession);
-        catalinaSession.setId(newSessionID, false);
-        // FIXME: Why we remove change data from other running request?
-        // setId also trigger resetDeltaRequest!!
-        if (catalinaSession instanceof DeltaSession) {
-            ((DeltaSession) catalinaSession).resetDeltaRequest();
-        }
+        catalinaSession.getManager().changeSessionId(catalinaSession, newSessionID);
         changeRequestSessionID(request, sessionId, newSessionID);
-
-        // now sending the change to all other clusternodes!
-        sendSessionIDClusterBackup(request,sessionId, newSessionID);
-
         fireLifecycleEvent("After session migration", catalinaSession);
         if (log.isDebugEnabled()) {
             log.debug(sm.getString("jvmRoute.changeSession", sessionId,



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message