On Tue, Oct 14, 2008 at 1:00 PM, Rusty Wright <[EMAIL PROTECTED]> wrote:
> I guess what I'm asking is, what's the difference between EJB3 and JPA?  For
> example, if I want to use JPA I could use Hibernate and Tomcat and use only
> the JPA annotations.  When you say EJB3 does that mean that you're using JPA
> in a J2EE app server, or is there more to it than that?

You are correct. However if you are going to do like you say and "Use
JPA with Hibernate and Tomcat" you will also STILL need some sort of
container to manage things which is where Spring comes in. You'll also
want Spring to manage transactions (which you get for free with EJB3,
etc) I don't want to start a whole Spring vs EJB3 war, but suffice it
to say I found the setup much easier with EJB3. You can follow some of
the 'war' so to speak if you look at some of the comments in this blog
post
http://java.dzone.com/articles/the-cost-springsource-enterpri  Both a
Spring/JPA/Hibernate solution and an EJB3/JPA/Hibernate solution will
work and they both have some pros and cons.


(For those catching this post out of context  it started with some
comments I was requesting in the maven setup for this tutorial I
posted: http://www.learntechnology.net/content/ejb/maven-ejb3.jsp Any
helpful changes are welcome, thanks.)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to