File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes J2EE Sever or Tomcat ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "J2EE Sever or Tomcat ?" Watch "J2EE Sever or Tomcat ?" New topic

J2EE Sever or Tomcat ?

Anjanesh Lekshminarayanan
Ranch Hand

Joined: Oct 21, 2003
Posts: 46
Trying to get into Servlets.
I understand Apache httpd wont support JSP - instead Tomcat is used. So either way I'll need to install another Web Server to run JSP.
Im already having IIS running for ASP.NET and Apache running for PHP.
So I guess I need another server to run JSP - so I want to know which best suits JSP - Tomcat or some other one provided free from Sun (anything like J2EE Server ?)

Anjanesh Lekshminarayanan
Rahul Singh Khokhar
Ranch Hand

Joined: Feb 23, 2005
Posts: 36
Hi Anjanesh,
Yes, to serve the JSPs you need to have a servlet container like Tomcat.

You can run any number of servers on you machine, provided they use different port numbers(IIS + Apache + Tomcat in your case).

To your question about which application server to use. Well, the choices are plenty if you are happy to buy the license products.

If you want to try out something for free & based on open source, then Tomcat is the favorite. If you plan to use EJBs in near future then go for JBoss(JBoss is the EJB container and comes with Tomcat embedded in it).

I have been using Tomcat for a long time in production environment with satisfactory results. Tomcat is relatively sluggish in performance, however you can load balance by using multiple instances of it. The new version 5.5.7 is claimed to be better so give it a try. (But Remember, Tomcat 5.5.7 is designed for the new JVM 1.5 so, if u r using the old JDK then either download the Tomcat compatibilty patch or choose a prior version of Tomcat)

Overall Tomcat is a good product. So go ahead with confidence...

Good Luck!
Ryan Bailey
Ranch Hand

Joined: Feb 26, 2002
Posts: 134
Hi Anjanesh,

I would have to agree with Rahul. I have been using Tomcat for quite some time now. If all you are looking do to is develop Servlets and JSPs then use Tomcat. But if you are looking for a container that supports the use of EJBs go with JBoss. It is free. If you will be purchasing licenses then I would use webLogic. Just my personal preference if I had a lot of money

Another thing you may want to look into......
If you will be serving static and dynamic content and need it to be very fast, try connecting Apache Server with Tomcat. Last I looked there were quite a few 'plugins' you could use for integration. If it's just going to be a small system, then use just Tomcat. I do not have much experience with Tomcat5. I have been told that there are a lot of additional packages that were added with the new version of Tomcat5.

Good luck!

Java: The power, elegance, and simplicity of a hand grenade
Surasak Leenapongpanit
Ranch Hand

Joined: May 10, 2002
Posts: 341

Another thing you may want to look into......
If you will be serving static and dynamic content and need it to be very fast, try connecting Apache Server with Tomcat.

Yes, you can use JK1.2.x or mod_proxy to make connecting between Tomcat and Apache.
I agree. Here's the link:
subject: J2EE Sever or Tomcat ?
jQuery in Action, 3rd edition