Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Session migration

Ranch Hand
Posts: 182
  • 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???
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • 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

Normally trees don't drive trucks. Does this tiny ad have a license?
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic