my dog learned polymorphism*
The moose likes Tomcat and the fly likes Apahe Tomcat communication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Reply locked New topic
Author

Apahe Tomcat communication

ashishk kumar
Greenhorn

Joined: Jan 29, 2008
Posts: 13
Hi,
I have a doubt....
We all know -
Apache is a webserver and Tomcat is a container.

So how does Apache talk to Tomcat?

I have been checking the specifications on apache jakarta website but could not find the answer.

Please reply,
Thanks in advance,
Ashish
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Tomcat is also a web server in addition to a servlet container. No Apache is required unless you need some of the features that Apache provides that Tomcat does not.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
ashishk kumar
Greenhorn

Joined: Jan 29, 2008
Posts: 13
Yes Bear you are right and I agree with you fully.
But using Apache/Tomcat together is supposedly more reliable and considered a good J2EE practice.
Actually I was asked this question at an interview and I did not know the answer.

Can you please throw some light on this issue ?

Thanks,
Ashsih
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60800
    
  65

Originally posted by ashishk kumar:
But using Apache/Tomcat together is supposedly more reliable and considered a good J2EE practice. ... Can you please throw some light on this issue ?

This has not been true for quite some time.

With regards to the question: there is a connector that can be configured to allow Apache to hand off active requests to Tomcat. It's a pain in the patootie to set up and maintain.

And since there is no longer a reason to front Tomcat with Apache unless you have to, few people bother. I don't.
ashishk kumar
Greenhorn

Joined: Jan 29, 2008
Posts: 13
Thanks Bear, that should suffice the argument.
Cheers,
Ashish
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

We discussed this just last week.
See:
http://www.coderanch.com/t/87427/Tomcat/make-Tomcat-Apache-cooperate


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
Don't get me started about those stupid light bulbs.
 
subject: Apahe Tomcat communication
 
Similar Threads
Which Web Server?
Accessing a zip file through a JSP page.
Any Eclipse 3.2 Tutorial ?
Book for SCWCD.
Installing TOMCAT on linux .. HELP