tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: Way to cleanup *before* session terminates ?
Date Thu, 31 Jul 2003 13:33:00 GMT

What about the HttpSessionActivationListener's sessionWillPassivate()

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Bill Barker []
>Sent: Thursday, July 31, 2003 4:18 AM
>Subject: Re: Way to cleanup *before* session terminates ?
>Sorry Charlie (ok, I couldn't resist :), but there isn't a way to do
>Tomcat 4.x and lower.  However, the (current draft of the)  2.4
>has changed the behavior, and so in Tomcat 5.x you can define a
>HttpSessionListener that will get called before the session is
>"Charlie Toohey" <> wrote in message
>> I have been looking for a way to execute some code when a session is
>> terminating due to invalidation or expiration, but before the session
>> actually been terminated.
>> I know that implementing HttpSessionBindingListener and binding my
>> into the session will allow me to execute code in my valueUnbound
>> the notifcation is sent after the session has been invalidatd or
>> But is there any way to be notified that the session is about to
>> before it actually has been invalidated or expired ?
>> - Charlie
>To unsubscribe, e-mail:
>For additional commands, e-mail:

This e-mail, including any attachments, is a confidential business communication, and may
contain information that is confidential, proprietary and/or privileged.  This e-mail is intended
only for the individual(s) to whom it is addressed, and may not be saved, copied, printed,
disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately
delete this e-mail from your computer system and notify the sender.  Thank you.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message