Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Advantages of EJB 3 over the previous versions and in general ?

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I would like to know what most people think are the main advantages of EJB 3, compared to the previous versions but also with competitive solutions such
as Spring.

Why would you recommend EJB 3 ? In which cases ?

Of course I am aware of the main advantages but I think it would be nice to have a discussion about that topic and it is still part of the certification (benefits).
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Definitely Spring is much much ahead of EJB 3.0 (perhaps EJB 3.1 comes closer to that) in terms of flexibility and development effort goes. Ofcourse EJB 3 is much improved from its earlier versions, but from my experience working with EJB 3, I still find that to run a small application with some session beans, I have to up my server (EJB container...like Weblogic, JBoss AS) and initially I ran into problems like NamingExceptions and much more which I do not remember now. But to the contrary, Spring was much more easy to set up and Tomcat was more than enough to power up my web application which uses Spring middleware and moreover I didn't need an app server to test my middleware components.
 
Yucca Nel
Ranch Hand
Posts: 147
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well I am new to EJB myself but I read a lot that annotations have made it a million times easier to do what one would have to have done in xml before. Web Services are of course one of the big things in EJB3. Other than that you may wish to explore EJB in action as this book deals with exactly your question.
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what would be the advantages of EJB 3 compared to the previous versions then ?

You think Spring is better but you did not say why precisely EJB 3 is better than the previous versions of EJB and why you would use it in a project.
 
Joe Harry
Ranch Hand
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Celinio Fernandes wrote:So what would be the advantages of EJB 3 compared to the previous versions then ?

You think Spring is better but you did not say why precisely EJB 3 is better than the previous versions of EJB and why you would use it in a project.


The reasons are quite obvious...less code with EJB 3 than it's predecessors. The whole Entity Bean stuff is as easy as a POJO with JPA which kicked off into a specification in itself!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic