aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "J2EE Sever or Tomcat ?" Watch "J2EE Sever or Tomcat ?" New topic
Author

J2EE Sever or Tomcat ?

Anjanesh Lekshminarayanan
Ranch Hand

Joined: Oct 21, 2003
Posts: 46
Hi
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 ?)
Thanks


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!
Rahul..
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!
Ryan


SCJP 1.4, SCWCD
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: http://aspose.com/file-tools
 
subject: J2EE Sever or Tomcat ?
 
Similar Threads
JBOSS TOMCAT
JSP and Servlets on apache
Tomcat as a server & a container, how?
Apache and Tomcat questions
apache2 running jsp ,asp,aspx file ?