aspose file tools*
The moose likes Servlets and the fly likes Thread safety Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Thread safety" Watch "Thread safety" New topic

Thread safety

shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 194

attributes added to request scope are thread safe.. right

what about PARAMETERS added to request scope,,,i think they MUST be thread safe...
what is reality??
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60045

You cannot add parameters to the request.

But yes, you don't need to worry about the parameters, which you only read in any case, being a threading problem.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
shivam singhal
Ranch Hand

Joined: Jul 15, 2012
Posts: 194

thanks bear..
I agree. Here's the link:
subject: Thread safety
Similar Threads
MVC Pattern doubt
are request attributes and session attributes thread safe?
Help w/SingleThreadModel
Are implicit objects in JSP are thread safe???
request scope is thread safe