File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Web App/Container Relationship Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Web App/Container Relationship" Watch "Web App/Container Relationship" New topic

Web App/Container Relationship

Andrew Rigsby

Joined: Oct 05, 2006
Posts: 15

I understand that when a request is made to a web application's servlet, the request is delegated to the web container by the web server. The container then locates the relevant servlet class, creates the HttpServletRequest & HttpServletResponse objects and allocates a thread for the request.

What I wanted to know was ... does each web application run in a seperate instance of the web container or does a single web container manage all web applications?

Tha�s Manfrim Firmino
Ranch Hand

Joined: Apr 12, 2004
Posts: 48
You can have more than one application per container. If you do tests using tomcat , tomcat is the container, and you can create as many apps as you desire.

Tha�s M. K. M. Firmino
I agree. Here's the link:
subject: Web App/Container Relationship
It's not a secret anymore!