*
The moose likes Tomcat and the fly likes apache vs tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "apache vs tomcat" Watch "apache vs tomcat" New topic
Author

apache vs tomcat

mudassir shahab
Ranch Hand

Joined: Oct 13, 2003
Posts: 54
hi dudes...
i have to designed a help desk web application on jsp and linux...i want to know which one, apache or tomcat will be a better choice...i am in a big confusion as to what will be the better choice...if any one can tell me how to differentiate b/w both of the servers...thanks
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Apache is a web server.
Apache Tomcat is a Servlet Container, that is also capable of acting as a web server.
Many folks will integrate the two, in order to take advantage of Apache's security, management and performance features as a web server, using it to serve static content, while using Apache Tomcat to handle the dynamic content requests.
Note that Servlets and JSPs cannot be deployed to the Apache web server. For that you need a Servlet container like Apache Tomcat or Resin.
Clearer?
http://apache.org
http://jakarta.apache.org/tomcat


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
mudassir shahab
Ranch Hand

Joined: Oct 13, 2003
Posts: 54
will it be a better approach to use tomcat alone (not integrating with apache ) or will perform better if integrated with apache web server ??
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12760
    
    5
If the traffic is not going to be huge, and you don't need any of the Apache specialized modules such as PHP, Tomcat will do just fine and the whole thing will be simpler to get running and to manage by far.
What kind of simultaneous users count are you expecting to handle?
Bill
mudassir shahab
Ranch Hand

Joined: Oct 13, 2003
Posts: 54
well i am not sure about the number of users but its a complete help desk application that will be useful for the engineers of our client's company as well as for partners and customers...ok we can assume it as a large area...the thing is will there be any sort of performance problem in future if we use only tomcat...if you can list advantages of using both tomcat and apache ..it will be great..
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12760
    
    5
Back when I was paying attention to the Tomcat mailing list, there were posts by people running pretty big sites - one example was a newspaper's entire site.
How much of the total content will be static - images, and plain pages - and how much will be generated on the fly by servlets and JSP?
Bill
Harish Vembu
Ranch Hand

Joined: Jul 19, 2004
Posts: 33


Good explantion . Even though its a pretty older post. I would like to add further .

Always from a server architecture point of view its better to have an Apache Server handling all the HTTP requests and route it to Apache Tomcat server to handle dynamic pages like servlets and JSP's. I have worked with such integration on projects.
Both are from Apache Open source community and complement each other well.
For the curious and more inquisitive readers please refer an excellent article - http://www.it.uom.gr/teaching/applicationsIT_1/lectures/apache/sld016.htm


Thanks & Best Regards

Harish

Harish
SCJP ,SCDJWS
 
 
subject: apache vs tomcat
 
Similar Threads
Tomcat as a service
is GWT-Ext a better alternative than apache Tomahawk components
Running a forum on a tomcat server?
how can i detect windows exe running from java code
Standalone Tomcat 4.0