Before I ask my question let us assume a distributed environment with 2 JVM's.
In a distributed environment we know a HttpSession cannot co-exist on both the JVM's at the same time although servletContext can.
My question is Servlet A is accessing the HttpSession on JVM 1, at the same time if Servlet B also wants to access the same HttpSession from JVM 2, what will happen? Does the Servlet A completes, then the session passivates, goes from JVM1 to JVM2, then session activates, then serves the Servlet B.
Hope my question was clear. Thank you for helping me. Thanks, Luke.
PS: Preparing for SCWCD.
Joined: Nov 06, 2000
Not clear on your question. Is sevrletB form a different request/user?
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
Joined: Jul 02, 2007
In clustered environment I think all the requests from the same session goes to same server. Also there is some session sync mechanism (Not sure please check that).