File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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.
I agree. Here's the link:
subject: threadsafe objects
jQuery in Action, 3rd edition