Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sessions and migration

 
Peter Warde
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm a little confused about sessions and migration.

The spec says that a session can migrate from one JVM to another, but the spec also says that a session cannot migrate from one context to another context within the same container ie when using requestDispatcher to forward to another a servlet in another container.

Is this right and can anybody bring any further clarity to it.

Thanks

Peter
 
Kejal Shah
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,
I believe the first thing points to distributed application, in which case the session CAN migrate between different JVMs.

The 2nd argument, points to 2 different web applications, in which case the session CANNOT migrate.

HTH
 
Peter Warde
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks - I'm clear now
 
Gavin Zhao
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kejal Shah is right!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic