File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Apache and 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Apache and Tomcat" Watch "Apache and Tomcat" New topic

Apache and Tomcat

Anju sethi
Ranch Hand

Joined: Dec 26, 2005
Posts: 91
can anyone explain me the difference between Apache and tomcat

thanks,<br />Anju Sethi
Kathy Sierra
Cowgirl and Author

Joined: Oct 10, 2002
Posts: 1589
Howdy -- Apache is a web server, whose primary responsibility is to respond to HTTP requests (like GET (some file))

But to run servlets/JSPs, you also need a web "container", and that's what Tomcat does. Tomcat supports servlets and JSPs, and is also a very weak web server, but for the real world, you would normally configure Tomcat into the Apache web server as a "plug in". Then the powerful Apache web server accepts the HTTP requests, while using Tomcat to deal with the servlets/JSPs.


Apache alone -- powerful HTTP web server

Tomcat alone -- web container, with a very limited HTTP web server

Apache with Tomcat -- a powerful web server that supports servlets and JSPs

shih mao su

Joined: Oct 25, 2004
Posts: 4
thinks. the answer is great.
let me understand with apache and tomcat different.
I agree. Here's the link:
subject: Apache and Tomcat
It's not a secret anymore!