aspose file tools
The moose likes Servlets and the fly likes Servlet Instance help required Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Instance help required" Watch "Servlet Instance help required" New topic

Servlet Instance help required

Kumar Gaurav
Ranch Hand

Joined: Apr 08, 2008
Posts: 108
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.


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61994

It depends on how they are declared in the deployment descriptor. You will essentially have one servlet per servlet declaration.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Servlet Instance help required