Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes More than one servlet per web application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
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://aspose.com/file-tools
 
subject: More than one servlet per web application
 
Similar Threads
ServletContext Confusion...
****ServletContext and WebApplication confusion****
Singleton Pattern
How Many Action Servlets
What is the difference between ServletContext and ServletConfig