943,783 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1374
  • Java RSS
Jun 26th, 2007
0

Java

Expand Post »
Hi

What is the difference between application server and webserver.

thanks.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
arunprashanth is offline Offline
17 posts
since Mar 2007
Jun 26th, 2007
0

Re: Java

AFAIK:
A web-server usually hosts only front-end jsps/htmls. It will have very little or no business logic.
An Application server on the other hand would host a lot more of business logic.
Reputation Points: 254
Solved Threads: 74
Practically a Posting Shark
thekashyap is offline Offline
804 posts
since Feb 2007
Jun 27th, 2007
0

Re: Java

Depends on what kind of project is under consideration. Some combinations I have seen are:
  • Web server and database server
  • App server and database server
  • Web server, Application server and database server
And BTW, a web server is different from a Servlet container considering that the latter is required if you want to host Servlets and JSP's. Basically its like:

Application Server <- Web Container <- Web Server

Application server incorporates everything.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Jun 28th, 2007
0

Re: Java

Click to Expand / Collapse  Quote originally posted by ~s.o.s~ ...
And BTW, a web server is different from a Servlet container considering that the latter is required if you want to host Servlets and JSP's.
AFAIK this used to be the case, now-a-days webServ itself takes care of both these tasks.
Reputation Points: 254
Solved Threads: 74
Practically a Posting Shark
thekashyap is offline Offline
804 posts
since Feb 2007
Jun 28th, 2007
0

Re: Java

Click to Expand / Collapse  Quote originally posted by thekashyap ...
AFAIK this used to be the case, now-a-days webServ itself takes care of both these tasks.
No. Tomcat is a ServletContainer that is able to perform most of the tasks of a web server.

Apache is a Web Server, but has 0 JSP/Servlet capability (it has its own ASPs, but that is something else entirely).

The above are just two examples to show the difference between a Servlet Container and a Web Server. S.O.S's order list is correct.
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006
Jun 28th, 2007
0

Re: Java

Click to Expand / Collapse  Quote originally posted by masijade ...
Apache is a Web Server, but has 0 JSP/Servlet capability
I didn't exactly get this. But I know that in our product, for O&M GUI we use Apache Tomcat. The GUI is written completely using JSPs.
Reputation Points: 254
Solved Threads: 74
Practically a Posting Shark
thekashyap is offline Offline
804 posts
since Feb 2007
Jun 28th, 2007
0

Re: Java

webserver doesnt support business logic

whereas application server support business logic

and

Everything in web server must be achieved programmatically

where as in application server

it provides a lot of services like security, transaction , scalability.
Reputation Points: 119
Solved Threads: 7
Practically a Posting Shark
vinod_javas is offline Offline
871 posts
since Feb 2007
Jun 28th, 2007
0

Re: Java

> But I know that in our product, for O&M GUI we use Apache Tomcat
Apache Tomcat is a web container which knows how to handle Servlets and JSP's and has all the capabilities of a normal web server.

Apache Web Server and Apache Tomcat are two different things.

> webserver doesnt support business logic
Thats not a generic statement. It does when your server side logic is written entirely is PHP. AFAIK, there is no app server for PHP, though I admit my understanding of PHP even fails me. Also when you have a small scale project, using a web container gets the job done. Low complexity projects seldom require the power of an Application server.
Super Moderator
Featured Poster
Reputation Points: 3233
Solved Threads: 719
Failure as a human
~s.o.s~ is offline Offline
8,871 posts
since Jun 2006
Jun 28th, 2007
0

Re: Java

Also, at least as far as apache is concerned, there is no reason why the Web Server can't have business logic. I know someone who has written an entire web site (not page) (and a complex one at that) as an Apache module. Very fast, but I, myself, would not want to be the one that had to maintain it (although there was flexible content).
Moderator
Reputation Points: 1471
Solved Threads: 490
Industrious Poster
masijade is offline Offline
4,043 posts
since Feb 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Algorithm explanation
Next Thread in Java Forum Timeline: Can anyone pls guide me with TechQuestions related to java





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC