• Post Reply Bookmark Topic Watch Topic
  • New Topic

HttpSessionActivationListener

 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If a session attribute object that implements HttpSessionActivationListener needs to get notification of whether it is going to be migrated from one JVM to another JVM , is it mandatory for that Attribute Object to implement Serializable interface.
 
MI Mohammed
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
From HFSJ once a serlvet implements HttpSessionActivationListener, it's not
mandatory for the class to be serialized. Serializing the class create
over excess over head on performance. So, it a matter of choice and performance. With HttpSessionActivationListener, everything has been taken
care of. Viola.

SCJP 1.4 SCJA
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
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!