• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

synchronize(getServletContext())

 
Cameron Park
Ranch Hand
Posts: 371
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am puzzled by the implication of
synchronize(getServletContext()){}
What does it do...

 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would ensure that only one Thread at a time could modify the ServletContext using that code.
Where did you see that?
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic