IntelliJ Java IDE
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes help needed for variable scope and thread-safe Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "help needed for variable scope and thread-safe" Watch "help needed for variable scope and thread-safe" New topic
Author

help needed for variable scope and thread-safe

lanling wong
Greenhorn

Joined: Mar 23, 2002
Posts: 15
hi, I am currently preparing for SCWCD test and find myself quite short of this information: designing and developing thread-safe servlets. can anyone tell me where i can get more reading on the above topic? thanks in advance.


lanling<p>SCJP2<br />SCWCD<br />SCJD
tony lee
Ranch Hand

Joined: Jan 21, 2002
Posts: 52
hi wong,
i think <<java servlet programming>> by jason is a good book. you can find there's a chapter talking about security.
as for thread-safe servlets, i think it's about synchronization in servlet scenario. any books on servlets covers this topic more or less. such as local variables are always thread-safe, class instance variables are not, and there is a SingleThreadModel interface, etc. I've not found a place where this topic is systematically discussed.
tony


SCJP2, SCWCD
lanling wong
Greenhorn

Joined: Mar 23, 2002
Posts: 15
thanks tony, i will follow your suggestion. have a good day.
Anthony Villanueva
Ranch Hand

Joined: Mar 22, 2002
Posts: 1055
Hi,
IMHO, Jason Hunter's book is an excellent source for servlets in general and has a good discussion on servlet threading issues in particular. You can also try this link.
-anthony
tony lee
Ranch Hand

Joined: Jan 21, 2002
Posts: 52
hi lanling,
miftahk's note gives a very good sumarization on the thread-safty of servlets. go there and take a loop. i regret that it's too condense.
 
IntelliJ Java IDE
 
subject: help needed for variable scope and thread-safe
 
Threads others viewed
How Servlet works?
DSRA9110E Connection is closed
How can i say my servlet is Thread-Safe?.
How to make a static variable thread safe?
how final variable can be manupulated?
MyEclipse, The Clear Choice