File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "sessions and migration" Watch "sessions and migration" New topic
Author

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.

Thanks

Peter
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.

HTH


Kejal<br />SaneDevil@gmail.com
Peter Warde
Ranch Hand

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

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


Impossible Is Nothing!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: sessions and migration