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 Urgent !!! Serializing Session Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Urgent !!! Serializing Session Object" Watch "Urgent !!! Serializing Session Object" New topic
Author

Urgent !!! Serializing Session Object

Aman Rustogi
Greenhorn

Joined: May 11, 2001
Posts: 22
Hi !!
How do i make my Session object Serializable. so that it will then persist across ClassLoaders.
I'm using Apache Web Server and ApacheJserv as servlet engine. Now whenever I reload my class files the exsisting Session gets timed out which is not required in my case. I need to serialize the Session object so whenever the servlet object is destroyed and recreated with a new ClassLoader, it should retrieve it's state from the Session Object.
Thanking u in advance,
Aman
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
hi aman,
so HttpSession is'nt serializable,
then one way c'd be keep saving the data in the some temporary table repeatedly. :-(
probably this is'nt so helpful.
But looks like there's no other option if you w'd want your data to remain after u bring down and start the server.
karthik.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Urgent !!! Serializing Session Object
 
Similar Threads
Session tracking
HttpSession
Tomcat Session Handling
How do sessions really work on client side
executing code when a session expires?