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

EJB 3... why should I learn it?

 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I worked with EJB 1 & EJB 2 some years ago.
For a while now I'm using Hibernate... and now more and more iBatis.

Why should I learn EJB3?
What are the benefits?

I had lot of performance problems with EJB before...
At the end, it cost me more efforts to solve the problems that writing the DAO layer by the hand.
--> I would like to be convinced before I learn EJB3.

Thanks for you oppinion and arguments.

Stephane
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you have worked with EJB 1 and 2 you will be well aware that EJB != a persistance technology alone. Stateless session beans have always been useful and continue to be so.
 
Stephane Clinckart
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Sturrock wrote:If you have worked with EJB 1 and 2 you will be well aware that EJB != a persistance technology alone. Stateless session beans have always been useful and continue to be so.



Yes..; sorry... I was only speaking about the persistance layer in my message... but of course EJB are usefull for managing beans.

But since framework like Spring exist... and that the EJB persistance layer don't really add some real extra value (in my opinion) vs hibernate or iBatis.

where is the interest/benefit to learn (what is the average learning curve?)... and use EJB3?

That is why I ask: Why should I learn it?

Thanks for the response.

Stephane
 
Paul Sturrock
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure I completely follow. If you already know the SLSB part of EJB (which hasn't really changed a great deal) surely its a greater effort to learn Spring? (not that I'm saying Spring has no value or less value, just that your question is based on effort).


and that the EJB persistance layer don't really add some real extra value (in my opinion) vs hibernate or iBatis


Persistance in EJB3 is JPA which is a specification, not an implementation. One of the leading implementations is ... Hibernate. iBatis on the other hand is a completely different beast. Given JPA was written with the lessons learned from Hibernate in mind (and by some of the Hibernate team) if you already know Hibernate you probably know or will quickly recognise all the concepts of JPA.

 
Stephane Clinckart
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Paul Sturrock wrote:Persistance in EJB3 is JPA which is a specification, not an implementation. One of the leading implementations is ... Hibernate. iBatis on the other hand is a completely different beast. Given JPA was written with the lessons learned from Hibernate in mind (and by some of the Hibernate team) if you already know Hibernate you probably know or will quickly recognise all the concepts of JPA.


Hi,

thanks... I didn't know that.

The learning curve looks smaller now...

Thanks again.

Kind regards,

Stephane

 
That which doesn't kill us makes us stronger. I think a piece of pie wouldn't kill me. Tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic