This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes threadsafe objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "threadsafe objects" Watch "threadsafe objects" New topic

threadsafe objects

geeta vemula
Ranch Hand

Joined: Jul 18, 2008
Posts: 208
If we declare servletcontext and session objects inside the mothod(like doGet or doPost) then are they threadsafe for being local variables?

Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
They are not thread safe.
wood burning stoves
subject: threadsafe objects
Similar Threads
ThreadSafe Collection
true or false......implicit obj's threadsafe?
which data is ThreadSafe ?
Using same object for multiple uses
are stateless beans thread safe