static method and synchronized keyword
Posted on 2003-11-30
Could I get clarification on this ?
I have some static methods in Servlets that create objects locally but then pass them to another Servlets static methods for additional processing.
In the second Servlets static method do I have to synchronize on the input parameters in case several threads running through the first Servlet ask the second Servlet to do additional processing for them at the same time or is the second Servlets parameters safe as they were created locally in the first Servlet ?