This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes distributed across multiple JVM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "distributed across multiple JVM" Watch "distributed across multiple JVM" New topic
Author

distributed across multiple JVM

Micheal John
Ranch Hand

Joined: Nov 01, 2006
Posts: 344


What are the correct answers?

If the web-application is distributed across the multiple JVM, what will be status for ServletContext and session object...?


Micheal John
SCJP 1.4 (86%), SCWCD 1.4 (86%), SCBCD 1.3 (85%), SCDJWS (Just Started...) - Satisfaction Lies in Our EFFORT, Not in the ATTAINMENT
Stella Kim
Greenhorn

Joined: Jan 18, 2007
Posts: 25
When the web-application is distributed across TWO VMs :

Everything except the 'HttpSession' is duplicated on the other VM.
'HttpSession' objects(including their attributes) 'move' from one VM to another.
'HttpSession' live in only ONE place at any given moment, so same session ID for a given web app will NEVER appear in two VMs at the same time.

<HF book on page 255>


Kim<br />SCJP 1.4 (98%)<br />SCWCD (92%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: distributed across multiple JVM
 
Similar Threads
ServletContext in Distributed Env.
mock question regarding distributed application across multiple JVMs
Servlet context
Multiple JVMs (default vs. non-default servlet context)
Default servlet context