• 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 serialize of getSession()

 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi frinds
i need small explanation
the thing is that when we want make a sesion serializable

we should make sure that all our servlets have to do serialization of the session rite......

please correct me
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I may be misunderstanding what you're saying, but the way it's phrased it sounds wrong.

To make a session serializable, all objects put into the session must be serializable. The servlet doesn't have to do anything special. Is that what you're asking?
[ August 31, 2007: Message edited by: Ulf Dittmer ]
 
Ranch Hand
Posts: 242
Mac Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Kajal

What do you want to achieve by serializing a session.
We normally serailize the attributes attached to the session of a distributed web app.

I have heard of synchronization of session but haven't heard about serializing of session.
Moreover I don't think we serialize a method. We serialize a class by making them to implement marker interface Serailizable.
Please explain it a little more.

Regards,
Khushhal
 
reply
    Bookmark Topic Watch Topic
  • New Topic