tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <rom...@zzict.nl>
Subject Re: Session Close
Date Thu, 09 Nov 2000 00:18:11 GMT


On Wed, 8 Nov 2000, William Brogden wrote:

> 
> 
> Pablo Trujillo wrote:
> > 
> > I need to execute a procedure when a session closes. Is this possible? How
> > it is made?
> 
> Make a class that is a HttpSessionBindingListener - attach an
> object of this class to the session. When the session is destroyed
> your object will get a call to the valueUnbound method.

this is the clean way of doing it.
you could also add some object to the session,
and do whatever you want in the finalizer.....

Dirty, but works.

Sloot.


Mime
View raw message