File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "distributed across multiple JVM" Watch "distributed across multiple JVM" New topic

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

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:
subject: distributed across multiple JVM
It's not a secret anymore!