• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between web server and server

 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My understanding is
i) There are three different components : server, webserver, web container.
ii)The server is the place where the actual static/dynamic content is available. (i.e the machine which has the actual physical files)
iii) The web server is used to respond for the static content by pulling the files from the server.
iv)The web container is used to give or generate the dynamic content of the web page.

Example for each is :
server: A machine
web server: Apache
web container: Tomcat.

So please confirm if i am right. If not please guide me in the right path.

 
raj malhotra
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

ii)The server is the place where the actual static/dynamic content is available. (i.e the machine which has the actual physical files)

Server is a generic term used for the server environment means to say the one who serves it may be mail server,web server,applcation server etc .Anything which accept the client request and respond to it.
So it can be machine,mail server,even a simple java object registered with a registry and which can listen to request and handle it (RMI concept).

iii) The web server is used to respond for the static content by pulling the files from the server.

Yes web server is used to handle the http request.It can return the static content.But with the help of web container it can also return the result generated by the web container on the fly.Although it itself dont know whether the response is generated dynamically.It just send the response to the client browser.
ex-Apache web server is correct

iv)The web container is used to give or generate the dynamic content of the web page.

yes.Tomcat is correct example


Application server.:- It contains web container and EJB container plus various other services.ex-
Oracle BEA WEblogic,Sun Application server

 
Sony Agrawal
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks... and all these three components are strictly different entities and cannot not refered otherwise.. right???

 
Ankit Garg
Sheriff
Posts: 9577
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's an FAQ here which might help you...
 
raj malhotra
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ankit
Thanks for pointing the Article.After reading the article i got doubt when they said tomcat as application server.When i download tomcat from apache website,am i just downloading web container or application server, i mean can i deploy ejb in tomcat then.

Thanks,
Raj
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As that article explains, the term "application server" has no precise definition. Tomcat can certainly act as an application server, but it is not a JEE server (and so it can't run EJBs).

I advise not to use the term "web container", it's more confusing than helpful, and not used outside of the Java community. Tomcat is a web server and servlet container.

all these three components are strictly different ..
It sounds as if "server" is one of the terms you're referring to - as mentioned before, that is a generic term that applies to all these other categories.
 
raj malhotra
Ranch Hand
Posts: 288
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Ulf, for differentiating a J2EE server and application server.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic