Hi Rick would be nice if we could start at the top of Pikes Peak to look down on the Spring vs EJB debate Spring promotes the use of Factories and EJB doesnt Spring works well with all ORM methodologies including Hibernate and iBatis EJB supports implementation of Local vs Remote access for stateful and stateless beans latest version of EJB supports Annotations to implement interfaces more salient points?
with regards to MVC who wins and for what reasons? is this as simple as EJB is good ? and Spring is bad ? or vice-versa? thanks/ Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Tue, 14 Oct 2008 13:58:38 -0400 > From: [EMAIL PROTECTED] > To: [email protected] > Subject: Re: Would really appreciate some feedback on this Maven2-EJB3/JPA > example that I've posted, to make it better > > 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] > _________________________________________________________________ Stay up to date on your PC, the Web, and your mobile phone with Windows Live. http://clk.atdmt.com/MRT/go/msnnkwxp1020093185mrt/direct/01/
