You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Johan Compagner <jc...@gmail.com> on 2008/02/01 12:51:34 UTC

Re: Making your webapp thread safe

but you only have a assignment in our session, and that assignment you do
when somebody logs in the first time.
After that it isn't used. So the only problem i can see is that maybe when
you person logs in AND does already another
request in another pagemap/browser tab then that tab will not see that it is
logged in and also redirect once more.

But what does that matter because if the second tab did came a little bit
earlier any way then that would still happen.

Its not that the session object will be in an inconsitent state at some
point.

johan



On Jan 31, 2008 11:57 PM, Dan Kaplan <dk...@citizenhawk.com> wrote:

> I've been told by many people that the Session object is not thread safe.
>  If that's true, I don't think the example can be thread safe.
>
> RestartResponseException does not allow you to redirect to an external URL
> (that's what that method does).  That's why I can't use it.
>  -----Original Message-----
> From: Johan Compagner [mailto:jcompagner@gmail.com]
> Sent: Thursday, January 31, 2008 12:18 PM
> To: users@wicket.apache.org
> Subject: Re: Making your webapp thread safe
>
> that looks fine
> i would throw a RestartResponseException in youre forcelogin method
>
> On Jan 31, 2008 8:48 PM, Dan Kaplan <dk...@citizenhawk.com> wrote:
>
> > Ok, I've asked this at least twice already but I'm still incredibly
> unsure
> > of how to make my webapp thread safe.  So this time I thought I'd take a
> > different approach.  I wrote on the wiki a short, unrelated example:
> > http://cwiki.apache.org/confluence/display/WICKET/Facebook+Integration
> >
> > Is this example thread safe?  If it isn't, please EDIT THE EXAMPLE TO
> MAKE
> > IT SO.  That way I can finally see a *complete* example of a thread safe
> > webapp.  Thanks a lot for any help ☺
> >
> > Dan
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>