• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Server for EJB...with Tomcat?

 
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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)
 
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 149
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic