Making a servlet synchronized is a very bad design. The main purpose of it will be destroyed. Servlets should be designed in such a way that it can process multiple number of requests simultaneously! Moreover, the servlet should not contain any state storage and press the need for synchronization. Please rethink your design
Read full article from java - How we can make servlet synchronized? - Stack Overflow
No comments:
Post a Comment