File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Where's  servlet container in deployment diagram? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Where Watch "Where New topic

Where's servlet container in deployment diagram?

pippo pippi

Joined: Aug 05, 2011
Posts: 3

I've a doubt about deployment diagram.

When I distinguish between web server and application server, where is the servlets/jsps container?
I want to give to Web Server and Application Server different hardware, but depending of this assumption the architecture and the connections may be different, right?

Thank you very much,

Unni Pillai
Ranch Hand

Joined: Aug 22, 2010
Posts: 35

Servlet container is part of application server. For example Jboss application sever uses tomcat servet container.

pippo pippi

Joined: Aug 05, 2011
Posts: 3
Thanks Unni,

I know that but I was not sure where it's "logically" placed in the deployment diagram.
I saw deployment diagrams where the servlet container was explicitly placed in the web component... but this is another story...

Vijay keshava
Ranch Hand

Joined: Jul 05, 2011
Posts: 40

If I were to have web components in a separate war file and deploy it on the webserver, and ejbs/business classes in a different ear file and deploy it on the appserver, I would show the servlet container on the webserver and ejb container in the appserver, else I would show both on the appserver.

If webserver is used only for reverse proxy, loadbalancing and caching static content, then I would not show the servlet container in the webserver.


pippo pippi

Joined: Aug 05, 2011
Posts: 3

Thank you very much
Nikhil Kodilkar

Joined: Jul 20, 2011
Posts: 8
Your servlet container & EJB container both will reside inside the application server (Weblogic, Websphere, Glassfish, etc.).
That's 99% of the scenarios I've seen.

For simple applications there is a servlet container running independently (tomcat for example).
Bartosz Borowiec

Joined: Aug 23, 2011
Posts: 8
Usually web and ejb parts of application are deployed on the same machine. Teoretically you can deploy web part on separated web server ( tomcat ) and application server(jboss) that resides on different machines. But the question is why? May be two or more web applications can share the same the same ejb tier. I think that in assignment you should use simpler aproach.

SCEA 5.0, SCBCD 5.0, SCJP 5.0
I agree. Here's the link:
subject: Where's servlet container in deployment diagram?
It's not a secret anymore!