File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes diff between web server-app server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "diff between web server-app server" Watch "diff between web server-app server" New topic
Author

diff between web server-app server

Kather Basha
Greenhorn

Joined: Apr 12, 2004
Posts: 20
can anyone tell me about the major diff between web server and app server

Afroz Ahmed
Ranch Hand

Joined: Jan 18, 2004
Posts: 64
Hai Basha,

Web server mainly used to handle request/response type applications without much complex business logic.Apache is a webserver.It can run static contents like html,jpgs etc.

Tomcat is a web container.It can run normal html,servlets,and JSPs also but not EJB's.

Application server is the one which can do much more complex applications/business logic and provides services like transaction management,messaging persistence,connection pooling etc directly.All these services are add on services with all the J2EE complaint apllication servers.They can run EJB's also.Jboss is an example for application server.


The value of an idea lies in the usage of it.
Vijayendra V Rao
Ranch Hand

Joined: Jul 04, 2004
Posts: 195
Does this help?!


Vijayendra <br /> <br />"The harder you train in peace, the lesser you bleed in war"
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
My view has been that the web server does presentation stuff - HTTP, HTML, Servlet/JSP - and the app server does business stuff in EJBs and POJO. I like this point of view because I can use the app server without a web server, say for a fat client.

Our engineering guys say the web server is HTTP only, no application Java. A web server plug-in directs Servlet/JSP calls to the app server where all Java code runs. So Servlet/JSP/EJB is all app server to them. They like this point of view because all the java stuff is in their WebSphere deployment.

It took us about a month to realize we weren't always talking about the same thing. I try not to say web server or app server any more. I say HTTP server, servlet container and EJB container. Even that's a bit fuzzy because all three have some HTTP capacity.

Bottom line - if you're talking web server and app server with someone you don't know, stop and clear up what's what before you go on.


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: http://aspose.com/file-tools
 
subject: diff between web server-app server