Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where's servlet container in deployment diagram?

 
pippo pippi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Servlet container is part of application server. For example Jboss application sever uses tomcat servet container.
 
pippo pippi
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perfect.

Thank you very much
 
Nikhil Kodilkar
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic