• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

urgent serialize of getSession()

 
kajal mukergi
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • 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
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • 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 ]
 
khushhal yadav
Ranch Hand
Posts: 242
Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic