Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help me, a question about Apache Tomcat

 
Duong Hanh Nguyen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I know Apache Tomcat 5.0.28 is a application server which is built in Web server. So could you tell me the version of Apache web server is built in Apache Tomcat ?
I wonder if I have to install Apache web server or not (after I installed Apache Tomcat 5.0.28
Thanks so much for your help
 
Ulf Dittmer
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apache Tomcat is a web server and servlet container (written in Java), while Apache HTTPD is a web server (written in C). The Tomcat download does not include the Apache HTTPD web server, which is what most people refer to when they say "Apache". (The fact that both are developed under the umbrella of the Apache organization might be confusing you.)
 
Duong Hanh Nguyen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much for your answer, Ulf Dittmer
However if I use Apache Tomcat for development environment then how about the deployment environment ?
Are there any differences between them ?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are many differences between the Apache web server and Tomcat.
Apache by itself cant run servlets and JSP for one thing.
There is no reason not to deploy your application on Tomcat - UNLESS - you have to deploy to a site already running Apache.
Configuring Apache to refer servlet and JSP requests to Tomcat can be a real pain in the neck.
Bill
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To add to Bills comment:
Depending on the percentage of static to dynamic resources on your site, the extra overhead of passing requests/responses back and forth from httpd to Tomcat may actually be less efficient than just running Tomcat as a standalone.

Try running Tomcat as a standalone server.
If you have performance issues, weigh all of your options for improving the situation.
Using a separate webserver is only one of them.
 
Duong Hanh Nguyen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for all your help. I think I've got the information that I need
Thanks so much
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic