Thread safe servlet

Just half way reading a book, and found something is important in order to create a thread safe servlet, few attribute and variable must be synchronized as below:

  • Context Scope Attribute
  • Session Scope Attribute
  • Instance Variable
  • Static Variable/Class Variable



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.