Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt about session attribute serialization

 
ping zhang
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Who can tell some details about session attribute serialization: Serializable interface and writeObject/readObject methods in session migration.

Thanks!
 
Vipul Tulsulkar
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would suggest you to go through HeadFirst JAVA & there is another certification book i.e.Java 2 certification by Simon Roberts & Phillip Heller.If you are not satisfied with them then I would suggest you to go through core java book by Herbert Shieldt.

Regards,
Vipul
 
John Lincoln
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Zhang,

What details you are looking for ? If you have the book HFSJ, please read page 258.

If the attributes implement serializable interface you need to worry about the attributes when session migrates in a clustered environment.

But for any reason if your attributes are not serializable, your attribute class has to implement HttpSessionActivationListener.

HTH
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!