File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes Apache HTTP Server VS Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Apache HTTP Server VS Tomcat" Watch "Apache HTTP Server VS Tomcat" New topic

Apache HTTP Server VS Tomcat

Priya Dasu

Joined: Nov 19, 2003
Posts: 6
Hi there,
I am getting into ASAPI - Apache Server API and how it can be used to integrate modules with Apache HTTP Server. I also know about mod_jk/JK which is present in Tomcat to configure with Apache so that Tomcat runs on Apache Server.
What i want to know is -
1] Is there is any way by which i can directly integrate modules(perl or C) to Tomcat?
2] If i were to integrate my modules to Apache Server and then integrate Tomcat to Apache Server using mod_jk does that give me any advantage over using only Apache Server with my modules integrated to it.
3] When should Tomcat be integrated with Apache using mod_jk?
Thanks in advance,
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
2) No other module supports JSP and Servlets in the newer versions except a Servlet Conatiner such as Tomcat, Resin, Weblogic etc. All need a Connector to use with Apache.
3) Apache is finely tuned to handle serving up static content. If your site has a lot of html pages, gifs etc. Apache can do this with minimal server resources and should be used. If you want dynamic content provided by Servlets or JSPs, you must use Tomcat or another servlet capable contianer.

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
I agree. Here's the link:
subject: Apache HTTP Server VS Tomcat
It's not a secret anymore!