File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes HttpSession de-serialization Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "HttpSession de-serialization" Watch "HttpSession de-serialization" New topic
Author

HttpSession de-serialization

Meghasyam Bokam
Greenhorn

Joined: Feb 27, 2003
Posts: 16
Hi all,
Let's say, a HttpSession is migrated to another JVM
from the current JVM because of load-balancing in a distributed environment. How do we de-serialize the session at the other JVM?
Can someone explain this with an example.


Regards,<br />Meghasyam.<p>SCJP1.4
Gary Mann
Ranch Hand

Joined: Jun 05, 2003
Posts: 37
You don't - the server takes care of serialization and deserialization for you. The programmer's responsibility is to make sure that all the objects saved as session attributes are serializable. If your app may be deployed as distributable, make sure you test that sessions are recreated accurately.
 
Consider Paul's rocket mass heater.
 
subject: HttpSession de-serialization