This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Web server vs Application server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Web server vs Application server" Watch "Web server vs Application server" New topic
Author

Web server vs Application server

Brian Percival
Ranch Hand

Joined: Jun 23, 2004
Posts: 163
Basic q:

What EXACTLY is the difference between a webserver and a application server?
Brian Percival
Ranch Hand

Joined: Jun 23, 2004
Posts: 163
ya ya.. That's the first link that came up when I googled But it confused me more..

From what I understood one thing is clear,

--a webserver is a subset of an application server.

If a server can generate dynamic content for the clients, is it a webserver of application server?

Is Tomcat a webserver or application server?

In other words, if a server has servlet/jsp running capabilities, is it a web server or application server?

thanks,
Brian
Edwin Keeton
Ranch Hand

Joined: Jul 10, 2002
Posts: 214

Tomcat is primarily a servlet container which extends the functionality of a web server. (Since a servlet container can't do anything without a web server, Tomcat includes its own web server for convenience.)

In J2EE terms, an application server usually means it also has an EJB container. An application server handles things like database connections, lifecycle management, transactions and so on. I don't think this is necessarily a "legal" definition, it just seems to me that this is what most people mean when they say "application server."

Clearly though, you can build robust, scalable Java applications without EJB. If you have Tomcat and Apache, for instance, using Struts and Hibernate frameworks, would you call that an application server?


SCJP, SCWCD
Brian Percival
Ranch Hand

Joined: Jun 23, 2004
Posts: 163
Greetings from Hogwarts,

Hussain, thank you very much for replying.. It helped me alot. I appreciate it..
Kanag sen
Greenhorn

Joined: Sep 07, 2003
Posts: 8
Hope this helps


Webserver
=========
- Provides access to static content(html, etc.) by just sending the file to the client.
- Provides accesss to dynamic content by delegating the processing of dynamic web pages like jsp and asp to appropriate engines like servlet container and ASP engine respectively.

Application Server
==================
- A Webserver with the ability to deploy and manage applications and expose business logic to the client.


=============<br />SCJCP, SCWCD
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Web server usually serves http request while application server deals with various sorts of protocols to serve. So in this context web server is a subset of application server. But I really dont feel comfortable with the definition that applicaiton server is a web server+something.


Ashik Uzzaman
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Originally posted by Ashik uzzaman:
But I really dont feel comfortable with the definition that applicaiton server is a web server+something.


I confirm that also... Web Server may stay outside of application server as well... Then so-called something is alone in applicaiton server...


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Nicholas Cheung
Ranch Hand

Joined: Nov 07, 2003
Posts: 4982
Application server does not necessary be the Web server, although usually, big vendors implement their application server in this way

Nick


SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Web server vs Application server
 
Similar Threads
Java IDE
Choosing the welcome file from the list
problem with JNDI
Problems viewing HTML source from Internet Explorer
can jboss act as ftp server