• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session migration

 
Balaji Bang
Ranch Hand
Posts: 182
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am reading 6th chapter in HFSJ. I didn't understand Session Migration topic in page no:257.
In that it says : Only HttpSession objects will move.
One servletContext per VM, one ServletConfig per servlet ,per VM but only one HttpSession object for a given session iD per web app regardless of how many Vm's the app is distributed.

But in the diagram shown in that page it shows a different Session in the VMs.
In the first it showing 343 but in the second it shows 128 as session. Why it is different, it should be same right???
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Balaji,

unfortunately I don't have the book at hand right now but as you have guessed every VM should see an identical session content for the same session ID if you have a cluster of servlet containers like Tomcat configured to do session migrating. Perhaps the drawing in the book is meant to show something different?!? Anyway, it wouldn't make session to accept the overhead for session migrating if it wouldn't migrate the session to other nodes in the cluster

Marco
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic