aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Advantages of EJB 3 over the previous versions and in general ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Advantages of EJB 3 over the previous versions and in general ?" Watch "Advantages of EJB 3 over the previous versions and in general ?" New topic
Author

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

Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

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).


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9382
    
    2

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.


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Yucca Nel
Ranch Hand

Joined: Nov 20, 2008
Posts: 147

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.


SCJP 6.0, SCJD (400/400), SCBCD for JEE 5, SCWCD 1.4 I do videos for development at
http://www.youtube.com/user/thejartender?feature=mhee
I am probably the only developer ever to have had an orange sized brain tumor in my brain while learning development!!
Celinio Fernandes
Ranch Hand

Joined: Jun 28, 2003
Posts: 547

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

Joined: Sep 26, 2006
Posts: 9382
    
    2

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Advantages of EJB 3 over the previous versions and in general ?