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

Moderator: admin

Post Reply
max2fl
Posts: 33
Joined: Mon May 02, 2011 5:09 pm
Contact:

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

Post 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.

admin
Site Admin
Posts: 10046
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.
If you like our products and services, please help us by posting your review here.

max2fl
Posts: 33
Joined: Mon May 02, 2011 5:09 pm
Contact:

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

Post by max2fl »

in this case yes, but it's very bad idea to create your own Thread inside webApp

Post Reply

Who is online

Users browsing this forum: No registered users and 44 guests