• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

web server and web container

 
harsha addala
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between web server and web container?
When a request is made from the client what is the flow in web server and container till the response is received?
 
Scheepers de Bruin
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The web container lives INSIDE the web server.

The web server can serve straight forward files like HTML and images that require no processing.

The web container, on the other hand handles special resources that require server processing, like .jsp

Flow:
The web server receives the request. If the request requires special processing, it hands the request to the web container that calls the relevant resource, like a servlet, to handle the request. The resource generates a response, sticks something typically HTML (might be an image) in it, and hands it to the server. The server sends it back to the requestor.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The web container lives INSIDE the web server.

This is misleading. Apache Http Server (which is arguably the most common Web Server used) does not contain a Web Container.
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess we are talking about Java application servers here.

Web container = the runtime which can contain servlets, backing beans, EJB's, etc.
Web server = the execution infrastructure which handles requests and responses (mainly type of HTTP) between the web container and the client.
 
Scheepers de Bruin
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'k. Scratch that.

The web container possibly lives WITH the web server.
(And they have two ADORABLE puppies and garden gnomes)
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See:
http://en.wikipedia.org/wiki/Application_server
or search this, the JSP, and the, Apache/Tomcat forums on this site.
This question gets askes several times a week here.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just never use those words. We have IHS, a servlet container, an EJB container, a database server ...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic