Thursday, 20 November 2014

Difference between an Application server and a Web server

Difference between an Application server and a Web server
Hi all , Today I am going to write a post on very popular question which is what is the difference between an application server and a web server or you can say what is the difference between an app server and web server or sometimes in interviews it can asked as what is difference between tomcat and weblogic server .

So first I ll tell you the difference between an application server and a web server and then particularly tomcat and weblogic too. Since tomcat and weblogic are also examples of web server and application server but still I ll let you know the proper difference between tomcat and weblogic server.

If interviewer asks you jut one line difference between an application server and a web server then you can say that EJB applications (which ends with .ear) can be deployed on application server but not on web server but servlet and JSP application such as .war files can be deployed on web server .though an application server can also contain a web server then we can deploy .war files on that too.

Now lets come to detailed difference between an application server and a web server.

Application server
Web server
Application servers supports both EJB and transaction management

Web server supports only Servlets and JSPs
Application server exposes business logic to the client
Web server returns a HTML response to the client they can handle only http requests.
Application server can contain web server in them for e.g. JBOSS have JSP and servlet container in them

Application are heavy as compared to web server
Web server are also known as web container .
Example of Application servers are Weblogic ,JBOSS
Example of Web server is Tomcat.


Now I am going to tell you the detail difference between tomcat and weblogic server. Though its actually same as difference between an application server and a web server.

Weblogic
Tomcat
supports both EJB and transaction management

supports only Servlets and JSPs
exposes business logic to the client
returns a HTML response to the client they can handle only http requests.
Is owned by Oracle
Is owned by Apache Foundation
Supports both FTP and HTTP request.
Supports only HTTP requests.


That’s all from my side on difference between an application server and a web server.and difference between tomcat and weblogic server.
If you any more difference  between an application server and a web server or difference between tomcat and weblogic server then pleasee let me know I ll be more happy to include it .
If you like my post then please comment or give me + on google plus :)

No comments:

Post a Comment