AW: session listener

2002-03-15 Thread Lauer, Oliver

Hi, 

you can create an object that implements HttpSessionBindingListener and
store this object in your current session. This object will then be informed
when the session gets bound and unbound. 

Oliver 

 AXA eSolutions GmbH
 AXA Konzern AG Germany
 Oliver Lauer 
 Web Architect
 Wörthstraße 34
 D-50668 Köln
 Germany
 Tel.: +49 221 148 31277
 Fax: +49 221 148 43963
 Mobil: +49 179 59 064 59
 e-Mail: [EMAIL PROTECTED]
 _
 


-Ursprüngliche Nachricht-
Von: Aline [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 15. März 2002 11:31
An: Tomcat Users List
Betreff: session listener


Hello,

I'd like to add a listener to a session (there's no method for this in
HttpSession class).
I read that I have to configure the web.xml file but I don't know how

Does anyone can help me?

thanks

Aline
WEBCASTER
T +33 (0)3 28 36 25 25
F +33 (0)3 20 13 06 04
http://www.oeilpouroeil.fr
http://www.visiodrome.com



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: AW: session listener

2002-03-15 Thread Craig R. McClanahan



On Fri, 15 Mar 2002, Lauer, Oliver wrote:

 Date: Fri, 15 Mar 2002 11:30:05 +0100
 From: Lauer, Oliver [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: AW: session listener

 Hi,

 you can create an object that implements HttpSessionBindingListener and
 store this object in your current session. This object will then be informed
 when the session gets bound and unbound.


Oliver's solution works for both Servlet 2.2 (Tomcat 3.x) and Servlet 2.3
(Tomcat 4.x).  If you are using Tomcat 4, however, you do have an
additional option -- you can register application event listeners in the
web.xml file that are notified of interesting events (such as session
creation and deletion, or changes to session attributes).  The /examples
webapp has some listener elements to show you how they are registered.
Look in the API Javadocs for the following APIs:
  javax.servlet.ServletContextListener
  javax.servlet.ServletContextAttributeListener
  javax.servlet.http.HttpSessionListener
  javax.servlet.http.HttpSessionActivationListener
  javax.servlet.http.HttpSessionAttributeListener
for the interfaces you must implement.  The functionality is defined in
the Servlet 2.3 specification, which you can download at:

  http://java.sun.com/products/servlet/download.html


 Oliver


Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]