• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

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

 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 147
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic