• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Application Server and Web Server

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
What is the difference between ApplicationServer and WebServer.
can any one please help me.

thanks in advance.
 
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
A web server has the intelligence of a male model. It knows how to handle request, and map requests to files, and send those files to clients. That's what a web server is, basically - a remote mechanism for getting at static files such as images, mp3s, html files and stuff like that. It's a remote files system. Sure, you can add intelligence with PERL or PHP scripts, but that's small potatoes.

An application server is your intelligence. You can host logic components such as Servlets and JSPs on an application server. You can use the application server to make decisions about who can obtain what from your backend database. In fact, the application server is often thought of the middle tier, sitting between your client, that wants all sorts of information, and your back end database, that you want to secure and protect from those dastardly little clients.

Cheers!

-Cameron McKenzie
[ October 08, 2006: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the client makes a request which is an http request which goes to the
web server which basically handles protocols like http,ftp...
if it is a request for static resource it will fetch it for the client but
dynamic response has to be generated then it will pass on the request to the application server (which goes by the name) to generate the response
give to the web server and back to the client
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Kumar ,

a webserver handles request of type http,ftp ,https...
if you need a dynamic response , say a list of states in a country
based on the selection of the country , is still possible in a webserver.

Servlets can invoke a POJO(Plain Old Java Object) which has the business logic or a database access logic , so that you will be able to generate a dynamic response.

but if you need transaction to be handled based on your request,
if you need more efficient object pooling ,
then these kind of services is provided by APPLICATION SERVERS
 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Every Application Server (AS) is based on a particular Application Development Platform like .NET or J2EE. Though .NET is also a specification like J2EE that third party vendors can use to develop .NET compliant application server, there are not many .NET based application servers.

Depending on the platform it is based on every AS has to implement certain policies (security, caching, transaction control, authentication, data persistence etc.) For example, all J2EE servers have 'Web Container' (to host JSP, Servlets, Beans etc.) and 'EJB Container' (to host EJBs).

Web Servers have got HttpListeners (objects that react to every Http request they receive) which interpret the name and location of the resource requested and then send the resource to the requestor.

Almost all the AS today have an inbuilt WS and hence not only send the requested resource to the requestor, but also let you make a decision about sending it. Most of the AS are tuned to interact with backend databases and help the server side components for this purpose.

Apache Foundation's Tomcat is both a stand-alone servlet container (web container) used by other AS (like JBoss) and a web server. Weblogic, Websphere, Sun ONE Server are noted J2EE Application Servers.

Microsoft IIS and Apache Foundation's Apache Web Server are well known web servers.

Hope it helps.

Abhishek.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for immediate responce


-Ach
 
We noticed he had no friends. So we gave him this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic