the constructor has been put into a synchronized block, but it doesn't
safeguard isolation. When two requests from the same session come into
the server at the same time, it is still possible to get multi
threading problems...

Our current testcase is the user object we put on the session, which
is attached to a hibernate session. The hibernate session is specific
for each request cycle, and an object can only be attached to one
hibernate session at a time...

BTW This still fails on our setup.

Martijn

On 1/10/06, Niclas Hedhman <[EMAIL PROTECTED]> wrote:
> On Friday 06 January 2006 02:07, Jonathan Locke wrote:
> > the constructor would still be un-threadsafe though, wouldn't it?
>
> Constructors need to worry about synchronization on static members.
>
> The other case for synchronization concerns relating to constructors, is when
> the thread "leaves" the constructor to foreign classes passing itself as a
> reference. That way someone may pick up the object prior to the completion of
> the constructor and potentially introduce sync issues within the constructor.
>
>
> Cheers
> Niclas
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Wicket-develop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-develop
>


--
Living a wicket life...

Martijn Dashorst - http://www.jroller.com/page/dashorst

Wicket 1.1 is out: http://wicket.sourceforge.net/wicket-1.1


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to