On Mon, May 24, 2010 at 2:18 AM, gmx <[email protected]> wrote:

> Hi,
>
> I'm confused about how I should access objects stored in a WebSession,
> namely when to use
> `synchronized`, as:
>
> - the documentation says the session is not thread safe
>
> - the session example class WiaSession in Wicket In Action guards its User
> object by `synchronized`
>  (just because of the StatelessForm??).
>
>  BUT
>
> - the Wicket wiki example does NOT use `synchronized`...
>  (
> https://cwiki.apache.org/WICKET/custom-websession-storing-objects-in-session.html
> )
>
> - the other session example class CheesrSession in Wicket In Action simply
> contains an ArrayList and
>  not guarded `synchronized`; I see that there's no setter, but ArrayList is
> not thread-safe,
>  either. (AFAIK)
>
>
> Could someone shed a light on these issues?
>
> Thanks,
>
> Aroly
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
http://apache-wicket.1842946.n4.nabble.com/Wicket-Session-and-threading-tt1854534.html#a1854534

--
Jeremy Thomerson
http://www.wickettraining.com

Reply via email to