synchronize « Context « JSP-Servlet Q&A

2. Synchronizing ServletContext

3. Synchronization of ServletContext Object.

Hi All, -- I am trying to make the ServletContext synchronize because when 2 or more clients, are trying to modify the same servletcontext attributes, then that will be a problem. Because Servlet A tries to set context attribute as context.setAttribute("A","test1"); and Servlet B tries to set context attribute as context.setAttribute("A","B related code"); It could happen because Servlet B doesn't know ...