Hi all,
This is an excerpt from the
java doc of
Servlets:
When an application stores an object in or removes an object from a session, the session checks whether the object implements HttpSessionBindingListener. If it does, the servlet notifies the object that it has been bound to or unbound from the session. Notifications are sent after the binding methods complete. For session that are invalidated or expire, notifications are sent after the session has been invalidatd or expired.
The above is basically an excerpt from the description of javax.serlet.http.HttpSession.
My doubt is in the portion in bold above, meaning i dont understand which notifications are they talking about? Is it the notifiaction which will be sent to the HttpSessionAttributeListener, which is registered in the web.xml; because, if the attributes implement the HttpSessionBindingListener, as soon as the session invalidates, first they would be notified by the container. Is it that immediately after that notification will be sent to the HttpSessionAttributeListeners???
Plz clarify....
Thanks,
Amit
[ June 05, 2006: Message edited by: Amit Das ]