aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Server for EJB...with Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Server for EJB...with Tomcat?" Watch "Server for EJB...with Tomcat?" New topic
Author

Server for EJB...with Tomcat?

Christopher Arthur
Ranch Hand

Joined: Mar 09, 2004
Posts: 149
Hello,
I'm currently designing my first web application, and I have the opportunity to publish it on a Tomcat server. I'm just getting to the part where I start to program database operations, and I'm wondering if using EJB is the way to go, rather than to make database calls from my servlet. I guess that what I'm wondering is, is there a way to deploy EJB's with Tomcat, or is there some EJB container that I can get (for free) that would be not too much work to set up and use in conjunction with Tomcat? How about the j2ee server that comes with J2EE 1.3?
Chris
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You could use JBoss - it is probably the most well recognised Open Source EJB container around. And it ships with Tomcat as standard. www.jboss.org
(IMHO: the container which ships with J2EE is very definately not a reliable production container. Its fine for doing the jGuru short courses, but anything that's actually going to be used by people other than yourself: get a proper container)


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Blake Minghelli
Ranch Hand

Joined: Sep 13, 2002
Posts: 331
Just something to think about... You do not have to go EJB in order to avoid JDBC calls from within your servlets; There are many other approaches if that is the only concern. If you haven't read it yet, I would recommend "Core J2EE Patterns" (ISBN 0131422464).
I'm not trying to steer you away from EJB, just making sure that you are aware of the other options out there. EJB is not a "fit" for every project. If I remember right, the J2EE tutorial on Sun's site lists some project characteristics that may help identify whether or not EJB is a good candidate.
Good luck!


Blake Minghelli<br />SCWCD<br /> <br />"I'd put a quote here but I'm a non-conformist"
Marcos Maia
Ranch Hand

Joined: Jan 06, 2001
Posts: 977
Hi,
you should consider using struts and hibernate for your project. You may find infomation on Struts(for control, validation, etc) at:
http://jakarta.apache.org/struts/
and about Hibernate (for persistence) at:
http://www.hibernate.org/
but if you're relly going for entity beans for persistence take a look at the j2ee tutorial at sun's site.
Christopher Arthur
Ranch Hand

Joined: Mar 09, 2004
Posts: 149
Thank you for the replies...JBoss and Struts, and hibernation...I will look into them...Truth is, I just passed the EJB certification, but I've never programmed a single bean, so I was looking for an excuse to use them. Maybe it is overkill since my database is going to have just a single table as far as I envision it.
Cheers!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Server for EJB...with Tomcat?