Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How servlet container maintain threads

 
Gaurav Agarwal
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How servlet container maintain more than one request through threads? How many object of servlet are created?

Thanks in advance




Gaurav Agarwal
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each servlet is only instantiated once. But the container allocates a new thread for each incoming request, and inside the thread calls the servlet's service method.
 
Gaurav Agarwal
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Thanks for your response,

Request you to kindly elaborate the hole process once again so i can understand it more clearly.


Gaurav Agarwal
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a tall order.
Maybe too tall for a web forum.

In my signature, there is a link to the servlet specification.
It's an easy read and should answer all of your questions.

-Ben
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic