• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Urgent !!! Serializing Session Object

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic