| Author |
Session in Distributed Environment
|
Luke Zechariah
Ranch Hand
Joined: Sep 27, 2005
Posts: 106
|
|
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.
|
 |
Bosun Bello
Ranch Hand
Joined: Nov 06, 2000
Posts: 1506
|
|
|
Not clear on your question. Is sevrletB form a different request/user?
|
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
|
 |
Nimit Shah
Ranch Hand
Joined: Jul 02, 2007
Posts: 52
|
|
|
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).
|
 |
 |
|
|
subject: Session in Distributed Environment
|
|
|