This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet Instance help required

 
Kumar Gaurav
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In a web-app say there are 100 servlets so is it like at any point of time there will 100 instances of 100 servlets (assuming one instance per servlet) in server JVM or no of instances will be different.

Please help me out.

Regards,
Gaurav
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It depends on how they are declared in the deployment descriptor. You will essentially have one servlet per servlet declaration.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic