When a first request is made to a servlets the init() method is called for the first time and after that the threads will serve the subsequent requests. What will happen when 2 requests are made to a servlet at the same time immediately after the server has restarted?

Stephen McConnell

The App server will queue up the requests. Then, they will be processed with the first one (the App server decides) calling the init method and the second waiting until it's finished to throw the processing thread.

At least that's how I understand it.

Stephen McConnell

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.