• Post Reply Bookmark Topic Watch Topic
  • New Topic

distributed across multiple JVM

 
Micheal John
Ranch Hand
Posts: 344
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


What are the correct answers?

If the web-application is distributed across the multiple JVM, what will be status for ServletContext and session object...?
 
Stella Kim
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!