This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HttpSessionActivationListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HttpSessionActivationListener " Watch "HttpSessionActivationListener " New topic


Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
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.

Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
MI Mohammed
Ranch Hand

Joined: Feb 16, 2005
Posts: 146
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.


SCJA(Beta) SCJP 1.4 SCWCD 1.4 SCBCD 1.3 SCBCD 5.0 beta <br />The more practice we get, the better we are at the exams and in life in general. Pls join me at My DEN.
I agree. Here's the link:
subject: HttpSessionActivationListener
jQuery in Action, 3rd edition