File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Urgent !!! Serializing Session Object" Watch "Urgent !!! Serializing Session Object" New topic

Urgent !!! Serializing Session Object

Aman Rustogi

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,
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.
I agree. Here's the link:
subject: Urgent !!! Serializing Session Object
jQuery in Action, 3rd edition