Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between a Web Server and a Servlet engine  RSS feed

 
B Mampilli
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
These are two other questions I was asked. Please
share your viewpoints.
1. Difference between Web Server and a servlet engine?
2. Difference between App Server and Web Server?
Boney
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) "Web server" vs "Servlet container"
I believe the most common classification is that a web server is an implementation of HTTP compliant server, usually serving static content such as HTML files or GIF/JPEG/PNG images or PDF files. "Web server" is often associated with Apache, not anything related to Java Servlets or the J2EE specification.
A "servlet container" almost always refers to a J2EE-compliant server supporting the Java Servlet specification (and often JSP). I said "almost" because I remember seeing a product, which implements a servlet container for C++ code (with an API similar to javax.servlet.*)...

2) "App server" vs "Web server"
An application server is generally a J2EE application server, hosting applications - business logic. There are application servers for other technology platforms as well but the J2EE application server is by far the most common concept. A web server, as I already mentioned, is a "dumb" server with no business logic.
 
Ashish Kothari
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If app server is a dumb server ,why can't we deploy our components on web server?
please let me know.
Ashish
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!