Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

help needed for variable scope and thread-safe

 
lanling wong
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
tony lee
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
lanling wong
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks tony, i will follow your suggestion. have a good day.
 
Anthony Villanueva
Ranch Hand
Posts: 1055
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic