RE: Session Expirey hooks

"Andrew Rendle" <[email protected]> Thu, 22 Jan 2004 15:30:04 -0000
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Yes you are probably correct, cut & paste error.... oops

It would probably be very useful to be able to switch on any or all of those
listeners as a general purpose feature...for clean up, logging, testing,
debugging etc

Cheers

Andrew Rendle

-----Original Message-----
From: [email protected]
[mailto:[email protected]]On Behalf Of James Carnegie
Sent: 22 January 2004 14:53
To: [email protected]
Subject: RE: [Barracuda] Session Expirey hooks

Hi Andrew,

Thanks for your suggestion, but isn't it true that using this method, I
will only be notified when a session is passivated or activated, not
expired?

Ideally, I would be notified just before the session is expired, so that
I can fire a Barracuda Control event to do the cleaning up.

Whilst looking at the Servlet 2.3 API, I also found:
javax.servlet.http.HttpSessionListener. It looked like it may do the
job, but the docs say that my implementation will only be notified
_after_ the session has been expired, and that "To receive notification
events, the implementation class must be configured in the deployment
descriptor for the web application." I am not sure how that fits in with
Enhydra applications, but I know that we would rather register the
listeners on the fly from Barracuda Event handlers than at Enhydra
startup.

I will look further into this, but any additional ideas at this stage
would be much appreciated.

James.

On Thu, 2004-01-22 at 14:10, Andrew Rendle wrote:
> Hi James
>
>
>
> I don¢t know exactly how you would do it with barracuda but this is
> how I do it
>
> ·        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.
>
> regards
>
>
>
> Andrew Rendle
>
> www.tqs2.com
>
>
>
> --Original Message--
> From: [email protected]
> [mailto:[email protected]]On Behalf Of James Carnegie
> Sent: 22 January 2004 13:33
> To: Enhydra-Dev-List; [email protected]
> Subject: [Barracuda] Session Expirey hooks
>
>
>
> Hi All,
>
> I am writing a Barracuda web-app under Enhydra 5.1.
>
> When a user session is timed out by Enhydra, is it possible to be
> notified somehow so that we can do some cleaning up?
>
> Kind regards,
>
> James.
>
>

_______________________________________________
Barracuda mailing list
[email protected]
http://barracudamvc.org/lists/listinfo/barracuda