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?
Servlet container is part of application server. For example Jboss application sever uses tomcat servet container.
Joined: Aug 05, 2011
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...
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.
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
subject: Where's servlet container in deployment diagram?