Win a copy of Functional Reactive Programming this week in the Other Languages 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic