• 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!
 
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!