File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Author

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?

Thanks,
Geeta
Chinmaya Chowdary
Ranch Hand

Joined: Apr 21, 2008
Posts: 432
They are not thread safe.
 
GeeCON Prague 2014
 
subject: threadsafe objects