| 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.
|
 |
 |
|
|
subject: help needed for variable scope and thread-safe
|
|
|