This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes Difference between web container and web server Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Difference between web container and web server" Watch "Difference between web container and web server" New topic
Author

Difference between web container and web server

rohan yadav
Ranch Hand

Joined: Oct 13, 2009
Posts: 156
Hi everyone, I am little confused with difffrence between web container and web server. Can anyone tell me diffrence between web container and web server?
Thanks everyone in advance.


Sage of The Monstrous Toad of Mount Myoboku
Paul Santa Maria
Ranch Hand

Joined: Feb 24, 2004
Posts: 236
Hi -

A "web server" is anything that responds to HTTP requests; ie. anything that serves web pages. Apache, Apache/Tomcat, IIS and JBoss/Tomcat are all examples of web servers.

A "web container" is a web-based, runtime environment to support J2EE components. Just as a "servlet container" (such as provided by Tomcat) is a runtime environment for Java servlets.

Having a "web container" implies having a "web server". But a "web server" need not have anything to do with web containers.

Or, more simply:


'Hope that helps .. PSM

Paul M. Santa Maria, SCJP
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35252
    
    7
If you search these forums you'll find that this question gets asked a lot; it really is a FAQ. Part of the reason is that the term "web container" is not used outside of the Java world (and not much within it) so many people aren't sure what it means. I recommend not to use that term; it confuses more than it helps.


Android appsImageJ pluginsJava web charts
rohan yadav
Ranch Hand

Joined: Oct 13, 2009
Posts: 156
Thanks everyone.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Difference between web container and web server
 
Similar Threads
difference between web container& webserver
web server and web container
a simple question
What Are the Differences Between HTTP Server and Servlet Container
web container vs web server