• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Diff b/w Webserver & ApplicationServer

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi friends,

Can you please let me know the diff. .......
 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
web Server is meant for handling JSP,Servlets,HTML pages etc while Application Servers handles the business logic like EJBs.It takes into account all the security , performance etc of the beans.

If you see the architecture of a j2ee application it has the view and the business logic , so to sepatrate them web servers and application servers come into picture.

WebServer : To handle view
Application Server : To handle business logic.
 
author and cow tipper
Posts: 5009
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I think of a web server and an application server, I think of Apache as a web server, and JBoss or WebSphere as teh application server.

The web server simply servers up files. You as a web server for an HTML file or mp3 file, it can server it to you. Web servers simply map request to files, without implementing any logic. Of course, sometimes you see PHP or CGI scripts run on a web server, but that's all artificial intelligence stuff. Web servers are really about as intelligent as a male model.

For logic, or real intelligent processing, an application server is needed. JBoss, WebSPhere, WebLogic and the like are all application servers, not web server. These are J2EE based application servers, and are responsible for running JSPs, Servlets, and EJBs. In my definition, JSPs and Servlets can not run on a web server.

Here's a little snippet from an article I wrote on Java at runtime.

When dealing with web based requests, before tunneling through to our application server, a client will always hit a web server first. The J2EE application server does not replace the need for a web server. A web server remains as pivotal a part of the J2EE architecture as ever.

Web servers are great at doing one thing: serving up files. A web server takes requests from clients, maps that request to a file on the file system, and then sends that file back to the client.

If you want an html file, a web server can efficiently and reliably find that file and send it back to you. If you need an image, a web server can serve it up to you as well. You want to download a zip file or a pdf file quickly and efficiently? A web server can make that happen.

Unfortunately though, your web server is about as intelligent as a male model. A web server can serve up static files until the cows come home, but ask your web server to add �one plus one� and you�ll be waiting there for a very, very long time.


If our applications use any images, HTML, pdf or zip files, we like to keep all of those static files on the web server. If we need some logic or dynamic content in our applications, we will delegate to our Servlets, JSPs, EJBs and JavaBeans that are running on our Application Server.

Now here is the dilemma. Our application server contains all of our Servlets and JSPs, but all of the requests go through the web server, and the web server, not being a very clever machine, tries to handle all requests, regardless of whether the request is for an image, html file, or to our detriment, a Servlet or a JSP....


Cheers!

-Cameron McKenzie

[ November 12, 2006: Message edited by: Cameron W. McKenzie ]
[ November 12, 2006: Message edited by: Cameron W. McKenzie ]
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Difference between Application Server and Web Server
 
Or we might never have existed at all. Freaky. So we should cherish everything. Even this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic