Community
Participate
Working Groups
We must ensure to call HttpSession#setAttribute() in order to trigger the underlying cluster technology. As noted in http://wiki.eclipse.org/Jetty/Tutorial/Session_Clustering, RAP "must call the Session.setAttribute() method to ensure that changes are persisted." Same story with Tomcat: http://tomcat.apache.org/tomcat-6.0-doc/cluster-howto.html: "Data is only replicated if the session has changed (by calling setAttribute or removeAttribute on the session). "
For now, I introduced an RWTClusterSupport class that acts as a servlet filter and thus must be registered in the web.xml (or another appropriate place) in order to work. RWTCluster support does two things: * before a request is processed, it (re-)attaches the session for the running request to the session store. * after a request was processed, it marks the session as changed in that it re-sets the attribute in which the session store is held in the session. Changes are in CVS HEAD.