• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help me out please

 
S. Vijay
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone

Can any one tell me whats the major difference between apache 2.2 and tomcat v6.0. I read from some of the sites saying that apache 2.2 is better than tomcat. For this reason I am trying to setup apache 2.2 with the eclipse java ee but its asking me to download and install tomcatv6.0. I already have apache 2.2 in my system. Do I have to delete or can i configure this for running java EE programs. I am just gonna start prepare for SCWCD so wanting to setup the server and the jsp earlier so that i can work out some cod while i prepare for this exam.

Your help is greatly appreciated.

Thanks
Vijay
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Apache HTTP Server (which is what you are almost certainly talking about when you mention version 2.2) is a web server, not an application server. It can serve dynamic content, however it does not serve Java applications - you might see Perl, or PHP, or Ruby code deployed on an Apache server. It really does not have any concept of applications, which means that if you do put more than one conceptual application on it you will have to worry about things such as applications interfering with each other, potential code overwrites, etc. Security is much coarser than what you get with an application server, and you rarely want to change a configuration file as that typically requires a server restart. That being the case, you do not normally have configuration files for databases etc., unless you write that into your own PHP (or Ruby...) code yourself.

For all that, the Apache HTTP server is usually better at serving static HTML pages than a typical application server, and the Apache HTTP server is often used as the customer-facing server that can then farm off requests to one or more application servers.

Tomcat is a Java Servlet/JSP server, and is often referred to as the "reference implementation" - that is, it is the server that is designed to meet the Java application server specifications. There are other Java web servers available (for example: Jetty), however it is usually recommended that candidates studying for the SCWCD exam should use the relevant Tomcat server.

Take a look at the JavaRanch SCWCD FAQ, especially the questions "What spec versions should I reference?" and "What version of Tomcat do I need and where can I find it?" for more information on what version of Tomcat you should use when studying for the exam.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also - take a look at Web Vs Application Server
 
S. Vijay
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Andrew for letting know what the difference between those.

I will look into the links which you have provided.

Thanks
Vijay
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic