tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tatu Vanhanen" <tatu.vanha...@graftor.fi>
Subject RE: SessionListener
Date Thu, 13 Nov 2003 13:07:56 GMT
>
> You might be able to use HttpSessionAttributeListener

...or HttpSessionBindingListener. The container calls the
valueUnbound(HttpSessionBindingEvent event) when the object is removed from
the session (e.g. when session is destroyed). I am using this one =)

- Tatu V.

> Peter Maas wrote:
>
> > What I actually want to do is call some destruct methods in objects
> > bound to the session...
> >
> > P
> >
> > Christopher Schultz wrote:
> >
> >> Peter,
> >>
> >>> I wondered if there is a way detect somehting like a
> >>> 'sessionWillBeDestroyed' event.
> >>> since the sessionDestroyed method in a sessionListener seems to be
> >>> called after the session was destroyed.
> >>
> >>
> >>
> >> I don't think you can 'veto' the destruction of a session, if that's
> >> what you mean. All the container will do is notify you that the
> >> session is in the process of being destroyed.
> >>
> >> -chris
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >>
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message