Please tell me what is the difference between a servlet container and a web container. What i think is, either both means same or, web container means a container for web modules, that may be just html pages and need not be jsp/sevlets/etc. And servlet container is the one that processes the full life cycle of a servlet. In other words, web container is sub set of servlet container. Please tell me if i am correct or correct me other wise
Web or HTTP servers generally handle only static content - images and HTML pages and such. When they recognize dynamic content requests by extension or path or some other indicator they pass the request on to CGI, ASP, servlet, etc. So a servlet container is a "plugin" to an HTTP server. In my WebSphere project they are on separate boxes, but some other products may bind them together so neatly that you can barely see the seams.
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
posted 14 years ago
Thanks for the clear explanation.
Can you please tell me some example server, where i have a web/http server(Both are same, rite??), and a pluggable servlet container. Do tomcat provide this feature?
The concept of Web Servers came before the Concept of Application Servers.
ie earlier there were server programs available which was able to satisfy requests for static contents like a text/image/any kind of file. These servers have a context within which the files which can be served by this server are kept. and this context can be reffered as WEB CONTAINER.
later when the concept of Application Servers came, they were introduced as plugin components, since there were lots of Standalone WebServers were already there.
Later, when there were webservers which came with the built-in support of application Servers. ie now-a-days, when you buy a AppServer, it has a WebServer built along with it.
BEA WebLogicServer,iPlanet,WebShpere.. all these servers have both web & app servers together.These can also be configured as just web-servers and use anyother server as servlet container. If done so, since the request has to pass to two different servers,two different JVM's, it has its own overhead.
Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
Currently I Reside HereWEBlog