Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web Container and Web server.

 
Rio Reva
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just started the preparations for SCWCD.My doubt is about Apache Tomcat.Is it a web container or a server?In some places I see that Apache is a web server, and that Tomcat is a web container?So I am confused, about this container and server terminology.

Could somebody please explain to me these terms?
 
Collins Mbianda
Ranch Hand
Posts: 262
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Rio !!!

A Web Server is one thing and a Web Container is another.

A web server refers to a server which normally listens at port 80 and serves up html pages, images, etc...
The html pages are usually static pages unless they contain JavaScript.
Example: Apache web server

A web container "implements the web component contract of the J2EE architecture". This contract specifies a runtime environment for web components that includes security, concurrency, life-cycle management, transaction, deployment, and other services.
A web container provides the same services as a JSP container as well as a federated view of the J2EE platform APIs
Example: Apache Tomcat

Note that the two examples are produced by Apache Foundation. Usually, "Apache" refers to their web server and "Tomcat" to the web container.

Hope it help.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The term "web container" is rarely used. "Servlet container" is more common.
Tomcat is both a web server and a servlet container.

It used to be that it was used mostly in conjunction with Apache httpd -which is proper the name of the Apache web server- because it wasn't very fast at web serving. But these days its performance is quite good, and the architectural overhead of using both together isn't generally justified by performance reasons alone.
 
Krishna Srinivasan
Ranch Hand
Posts: 1876
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Additional info :
http://en.wikipedia.org/wiki/Web_container
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic