• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session migration

 
Ranch Hand
Posts: 182
Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Yeast devil! Back to the oven that baked you! And take this tiny ad too:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic