Page 1 of 1

Re: About Question com.enthuware.ets.scwcd.v5.2.285 :

Posted: Wed May 04, 2011 3:44 pm
by max2fl
Hi,

There is no guarantee about thread safety of attributes stored in any scope (i.e. application, session, or request).

I suppose that attributes stored in request scope they are thread safety.

Re: About Question com.enthuware.ets.scwcd.v5.2.285 :

Posted: Wed May 04, 2011 7:52 pm
by admin
Request attribute may behave as thread safe because it is associated with one request, which in turn is processed by one container thread. However, it is possible for the servlet to create its own thread and pass the request object, in which case it won't be thread safe.

Re: About Question com.enthuware.ets.scwcd.v5.2.285 :

Posted: Thu May 05, 2011 12:49 pm
by max2fl
in this case yes, but it's very bad idea to create your own Thread inside webApp