aspose file tools
The moose likes Servlets and the fly likes More than one servlet per web application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "More than one servlet per web application" Watch "More than one servlet per web application" New topic
Author

More than one servlet per web application

Rohit Seth
Greenhorn

Joined: Sep 08, 2008
Posts: 4
Can we have more than one servlet instances running per web app. If yes then how would servletContext(application Context) be defined then ?
Ajay Saxena
Ranch Hand

Joined: Nov 13, 2006
Posts: 154
Yes, you can certainly have multiple servlets in a single webapp. The servlet context is a web app level object that could be shared across all the servlets belonging to the web app.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: More than one servlet per web application
 
Similar Threads
****ServletContext and WebApplication confusion****
ServletContext Confusion...
How Many Action Servlets
Singleton Pattern
What is the difference between ServletContext and ServletConfig