Two Laptop Bag
The moose likes Servlets and the fly likes App. server and webserver Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "App. server and webserver" Watch "App. server and webserver" New topic
Author

App. server and webserver

Parameswaran Thangavel
Ranch Hand

Joined: Mar 01, 2005
Posts: 485
hi
i want to know the diff. between Application server and webserver. with examples (if possible)
i searched net but didn't get enough material.

any please?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Search these forums. This gets discussed periodically.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17234
    
    1

J2EE can be broken up into different technologies. You can split it into technologies EJBs and Servlet/JSPs.

So each requires a different "server/container" EJBs reside in an App Server containter, and Servlet/JSPs reside in a web server. an App Server container cannot serve up Servlets/JSP or HTML, but a web server can.

Some "App Servers" like JBoss and Oracle App Server come bundled with a Web Server.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
SunilRee Gupta
Greenhorn

Joined: Mar 03, 2005
Posts: 12
Apart from Mark reply I want to add some more points

AppServer provides a lot of functioanlity which is not available with web server. If you want to use that functioanlity with Web server than you have to code yourself. AppServer is making the coders life simple so they can put their effort on logic.
babu hiran
Greenhorn

Joined: Jun 04, 2005
Posts: 12
A web server can only understand the http request and serve that request with static pages(html,gig,jpeg etc). Whereas the application server may have web server embeded in it and apart from just understanding the http request it can also run the coressponding business logic(ejb) and generate the pages dynamically(jsp) with the help of controller component(servlet).
So when a request reaches a web server, it will only know which static page to show. Where as an application server can dynamically generate static html using its (servlet,jsp,ejb) containers.
Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 160
is that the only difference that appln server can generate dynamic output and web server cant?Is there no other difference ?I am not convinced with the answers provided.cud any one explain in detail?
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Originally posted by nila dhan:
I am not convinced with the answers provided.cud any one explain in detail?


Ok. Have a look.

Web Servers vs. App Servers
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

The lines have become more blurred recently so I'll start with first principles:

As Mark stated, application servers are 'Containers that manage multiple applications', fully blown J2EE app servers manage resources, object lifecycle s, clustering and a whole stack of other responsibilities. Originally application servers were interacted with via a 'servlet container' sub part typically for HTTP communication, but this is no longer necessary. You can talk directly to EJBs or expose the functionality in a number of ways.

Web servers were originally designed to serve static content and still have a number of features which mean they tend to do this better than servlet containers, but this is a rough guide rather than a rule. You can get 'add-ons' for web servers to get them to return dynamic content. These are typically based on the old CGI design (originally C and PERL) but now there are a number of languages you can write dynamic content with.

The lines blur since some application servers include web servers embedded, and web servers have ways to embed application-server behaviour. For example, Websphere includes IBM's own tailored Apache server. This Apache server is completely configured and controlled by the app server. I'd give some examples (maybe BroadVision, Vignette or ColdFusion?) on the opposite, but I'm not sure on my facts so I don't want to give mis-information.

Dave
Nila dhan
Ranch Hand

Joined: Sep 15, 2005
Posts: 160
what are the components of a webserver and an application server.How is a request processed and the response generated in both the web and the appln server?
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: App. server and webserver
 
Similar Threads
IBMHttp Server 1.3.28 configuration
Basic difference between Application server & Webserver
webserver help
how to seperate weblogic?
Application Server Vs WebServer