aspose file tools*
The moose likes Servlets and the fly likes What exactly is the difference among:webserver, servletcontainer,serv-engine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "What exactly is the difference among:webserver, servletcontainer,serv-engine" Watch "What exactly is the difference among:webserver, servletcontainer,serv-engine" New topic
Author

What exactly is the difference among:webserver, servletcontainer,serv-engine

Rajen Seth
Greenhorn

Joined: Sep 22, 2003
Posts: 4
Often I get confused with these terms.can anyone explain the difference Please?
thank you in advance,
RS.
Paul Kelcey
Ranch Hand

Joined: Jan 26, 2003
Posts: 45
I'll have a crack at it.
A web-server may have a web-container. The web-container may or may not be built into the web-server. Some web-servers have built in web-containers and some don't. Initially a HTTP request is processed by the web-server. If it doesn't match a file in the web-root, the web-server passes it onto the web-container. The web-container will then try and match it against a servlet/jsp/file in order to generate a response (possibly a dynamically generated response - e.g. servlet/jsp). Web-servers don't know how to produce a dynamic response themselves (they just serve static files).
I'm not sure whether a web-container is a servlet-container or whether it contains a servlet-container. I'd guess that servlet-container, servlet-engine and web-container are the same thing but it may be that some servlet-containers have servlet-engines. Maybe you can replace the engine for a container. I didn't think so however.
I remember a project where our custom web-server used tomcat as its servlet/jsp engine. I think Tomcat uses Apache when run by itself. Tomcat is the servlet-engine/web-container and Apache is the web-server. Tomcat is a web-container/servlet/jsp engine and can be used by a variety of web-servers.
It may be more fine grained than that but that's my understanding.
Rajen Seth
Greenhorn

Joined: Sep 22, 2003
Posts: 4
Thank you for a good reply Paul.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What exactly is the difference among:webserver, servletcontainer,serv-engine
 
Similar Threads
Clarification
Array Initilaize
interview question
Why anonymous posts are allowed in this forum ?
WA #1.....word association