struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Pilgrim" <>
Subject Long term Session attributes [ was RE: Wizard Interface question ]
Date Wed, 06 Feb 2002 11:19:30 GMT

I suppose you can make all your big session object implement
a  `Leaseable'.

public interface SessionLeaseable {

     public void updateLastModified();

     public long getLastModified() ;

Have a background thread or even better a java.util.Timer
on each session object or per user.
The sleeper or swiper continuous timer wakes up every
10 minutes or so iterates through the attributes in the session
looking especially for Leasable object.  Remove any Leaseable
object that has expired the maximum idle time.

I do not how this scale across application servers, though.

Peter Pilgrim                 ++44 (0)207-545-9923

............................................ Swamped under electionic mails

---------------------------------------- Message History ----------------------------------------

From: "Stephen Owens" <> on 05/02/2002 13:01 EST

Please respond to "Struts Users Mailing List" <>

To:   "Struts Users Mailing List" <>
Subject:  RE: Wizard Interface question


Just to clarify. Putting the ActionForm in the session is simpler, but
it doesn't scale as well because your session grows. It also is one more
thing to worry about if you have multiple application servers and you
need to support failover. So, while I agree that session beans are an
option, I think in general you should avoid them where you can.


Stephen Owens
Corner Software

> -----Original Message-----
> From: Taylor Cowan []
> Sent: Tuesday, February 05, 2002 12:33 PM
> To: Struts Users Mailing List
> Subject: RE: Wizard Interface question
> All that is not necessary.  You can have the ActionForm bean placed in
> session scope, and allow different JSP pages to fill out the
> properties.
> This is configured in the struts config file.

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


This e-mail may contain confidential and/or privileged information. If you are not the intended
recipient (or have received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.

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

View raw message