users@glassfish.java.net

Re: User logs out, fires event

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Sun, 27 Apr 2008 14:02:08 -0400

An other idea is to use a stateful session bean (EJB) to store at least
some of the session data. It expires separately from web sessions, but
always executes the destroy() method when it expires (annotated with
@Remove).

If you are using JSF and want to detect expired web session, the Shale
View controller can be used to add callbacks into your managed beans for
lifecycle events:

http://shale.apache.org/shale-view/index.html

It might only be usable in JSF 1.1, not sure. NetBeans Visual Web also
adds a view or page controller callback feature on managed beans.
JBoss Seam has a different approach, but can also tell you when session
scoped beans are being destroyed.


Ryan


glassfish_at_javadesktop.org wrote:
> thanks, I'll look into that.
> [Message sent by forum member 'hughacland' (hughacland)]
>
> http://forums.java.net/jive/thread.jspa?messageID=271706
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>