aspose 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 Spring in Action this week in the Spring 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Urgent !!! Serializing Session Object