• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Where's servlet container in deployment diagram?

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...

 
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perfect.

Thank you very much
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't listen to Steve. Just read this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic