wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet Instance help required" Watch "Servlet Instance help required" New topic
Author

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.

Regards,
Gaurav


Regards,
Gaurav
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

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: http://aspose.com/file-tools
 
subject: Servlet Instance help required
 
Similar Threads
how many instances???
Single Threaded Servlets
servlets life cycle
init()
servlet pool