aspose file tools*
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


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Where Watch "Where New topic
Author

Where's servlet container in deployment diagram?

pippo pippi
Greenhorn

Joined: Aug 05, 2011
Posts: 3
Hello,

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,

Stefano
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.


SCJP,SCWCD,SCEA
pippo pippi
Greenhorn

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
Hi,

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.

Regards,
Vijay

pippo pippi
Greenhorn

Joined: Aug 05, 2011
Posts: 3
Perfect.

Thank you very much
Nikhil Kodilkar
Greenhorn

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
Greenhorn

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: http://aspose.com/file-tools
 
subject: Where's servlet container in deployment diagram?