This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
The service() method is defined in a servlet class. There is only one instance of each servlet in each JVM. When there is a request to the servlet, the container get a thread from the thread pool or create a mew thread for this request and call the service() method of the requested servlet. So the service() method may run parallelly in more than threads.
Hope this helps.
Joined: Dec 27, 2007
Is it the servlet who runs the service() method or the container ?