Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent !!! Serializing Session Object

 
Aman Rustogi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic