Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Java in General and the fly likes Difference between Web Server and Application Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Difference between Web Server and Application Server" Watch "Difference between Web Server and Application Server" New topic

Difference between Web Server and Application Server

Swaminathan Balasubramani
Ranch Hand

Joined: Apr 12, 2005
Posts: 38
Can anyone tell me the difference between Web Server and Application Server?

B.Swaminathan<br /> <br />Mobile:+91 09886510453
prakash suvarna

Joined: May 30, 2005
Posts: 1
A web server is where usually web components are deployed, ie. this will provide a run-time environment for these components. Web components can be a jsp file or Servlet. Here for deployment we use web.xml file.

where as in application server we can deploy an java components ranging from simple java application to server side business components like ejbs.
Usually when we want to deploy EJBs we will go for App servers like weblogic or websphere. Here ejb-jar.xml or application.xml file is used as deployment descriptor.
Andrew Nomos

Joined: May 31, 2005
Posts: 18
An application server commonly includes a web server so perhaps you can see an application server as an extension of a web server
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Double check with your audience that you're talking about the same things. Maybe include very short definitions in footnotes in written docs.

Our Internet Engineering guys say "web server" for Apache or IHS. Anything that runs Java is "application server" to them. This confused the heck out of us for a long while ... we call Apache the HTTP server, the servlet container the web server and the EJB container the app server. Now we know to verify our assumptions when we talk to them!

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
I agree. Here's the link:
subject: Difference between Web Server and Application Server
It's not a secret anymore!