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.
About Question com.enthuware.ets.scwcd.v5.2.285 :
Moderator: admin
-
- Posts: 33
- Joined: Mon May 02, 2011 5:09 pm
- Contact:
-
- Site Admin
- Posts: 10046
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scwcd.v5.2.285 :
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.
-
- Posts: 33
- Joined: Mon May 02, 2011 5:09 pm
- Contact:
Re: About Question com.enthuware.ets.scwcd.v5.2.285 :
in this case yes, but it's very bad idea to create your own Thread inside webApp
Who is online
Users browsing this forum: No registered users and 44 guests