This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes sessions and migration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "sessions and migration" Watch "sessions and migration" New topic

sessions and migration

Peter Warde
Ranch Hand

Joined: Aug 18, 2004
Posts: 71
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.


Kejal Shah
Ranch Hand

Joined: Jun 27, 2003
Posts: 87
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.


Kejal<br />
Peter Warde
Ranch Hand

Joined: Aug 18, 2004
Posts: 71
Thanks - I'm clear now
Gavin Zhao

Joined: Apr 29, 2004
Posts: 11
Kejal Shah is right!

Impossible Is Nothing!
It is sorta covered in the JavaRanch Style Guide.
subject: sessions and migration
It's not a secret anymore!