PlanetJava
Custom Search

java-stripes-user
[Top] [All Lists]

Re: Flashscope longevity

Subject: Re: Flashscope longevity
Date: Thu, 31 Aug 2006 21:49:38 +0200
That makes sense, for sure. And don't get me wrong : I *extensively* use it :-)
I was just wandering about that dependency on the session. Once again
I have no experience in clusters etc, but what you can read here and
there is scary you know...
Have fun,
Remi
On 8/31/06, Tim Fennell <[email protected]> wrote:
> My problem with session in general isn't that it can't be clustered
> (it can, and it works reasonably well in some implementations).  My
> biggest problem is that a user can have one session and *many*
> windows.  Let me give you an illustrative usecase drawn from past
> experience (and altered slightly).
>
> Say you're building a trading application and you want to, after the
> user places the trade, show them a confirmation message saying "Your
> trade for NNN shares of YYY was placed at HH:MM".  Now, one way to do
> it would be to toss the message into session and display it on the
> next request.  But what happens when an active trader comes along and
> has ten windows open with trade screens up, and at 3:58 hits trade in
> half of them.  Does he get all those messages on each screen?  Yuck.
> Or the same message on all his screens - even worse.
>
> The way flash scope works is it lets you temporarily slot some things
> into session under a unique key and then pull them back on the next
> request - so that this kind of clobbering doesn't happen, but you
> don't have to deal with sending the data back and forth to the
> browser.  To me, this is the real use case for it.
>
> -t
>
> On Aug 31, 2006, at 2:18 PM, VANKEISBELCK Remi wrote:
>
> > And btw, isn't this "flash" stuff ironical in the end ? I mean, they
> > say "don't use the session", but finally the framework does :-/
> >
> > I never had troubles with the session, I'm not used to clusters, but
> > if "flash scope" is based on the session, is the application stateless
> > finally ? Can it execute on clusters ?
> >
> > Have fun,
> >
> > Remi - a View State maybe ?
> >
> > --
> > Rémi VANKEISBELCK
> > [email protected]
> > http://www.rvkb.com
> >
> > ----------------------------------------------------------------------
> > ---
> > Using Tomcat but need to do more? Need to support web services,
> > security?
> > Get stuff done quickly with pre-integrated technology to make your
> > job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> > http://sel.as-us.falkag.net/sel?
> > cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Stripes-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/stripes-users
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
-- 
Rémi VANKEISBELCK
[email protected]
http://www.rvkb.com
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy