Gabriel
SCJP, SCWCD
<listener>
<listener-class>Fully qualified Class Name </listener-class>
</listener>
Originally posted by Pabak Nanda:
I am fully agree with Gabriel Forro. Except HttpSessionBinidingListener you have to configure all other ( 7 other ) listener.
The configuration is like
Thanks,
Pabak
Originally posted by liny liny:
Yes! That's right!
Originally posted by Mikalai Zaikin:
Also, refer these articles :
http://www.macromedia.com/support/jrun/ts/documents/tn18279.htm
http://e-docs.bea.com/wls/docs70/webapp/app_events.html
regards,
MZ
javax.servlet.http
Interface HttpSessionActivationListener
--------------------------------------------------------------------------------
public interface HttpSessionActivationListener
extends java.util.EventListener
Objects that are bound to a session may listen to container events notifying them that sessions will be passivated and that session will be activated. A container that migrates session between VMs or persists sessions is required to notify all attributes bound to sessions implementing HttpSessionActivationListener.
Since:
2.3
Notifying Objects That Are Associated with a Session
Recall that your application can notify Web context and session listener objects of servlet life cycle events (Handling Servlet Life Cycle Events).
You can also notify objects of certain events related to their association with a session such as the following:
- When the object is added to or removed from a session. To receive this notification, your object must implement the javax.http.HttpSessionBindingListener interface.
- When the session to which the object is attached will be passivated or activated. A session will be passivated or activated when it is moved between virtual machines or saved to and restored from persistent storage. To receive this notification, your object must implement the javax.http.HttpSessionActivationListener interface.
SCJP, SCWCD
Charith I Fernando<br />SCJP5, SCWCD, SCBCD, BSc(Hons) IS<br />+94 773 263 222 (mobile)
I am going to test your electrical conductivity with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|