Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question for Authors: Hibernate vs. EJB 3.0

 
Pat Dennis
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what I've read, EJB 3.0 is suppose to make object persistance much easier. My question is do you think more people will switch from Hibernate and other data persistance frameworks, back to the more traditional application servers with the release of EJB 3.0?

Also, can you give me a quick list of pros and cons for both Hibernate and EJB 3.0?

Thanks,

Patrick
[ August 23, 2005: Message edited by: Mark Spritzler ]
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know I am not an author. But isn't EJB3 a Specification and not an actual implementation. And therefore Hibernate can be an implementation of EJB3.

Mark
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Taken from JBoss's EJB3 Documentation webpage

Hibernate EntityManager Docs

JBoss EJB 3.0 is built on top of Hibernate 3.x. This gives in-depth knowledge of EJB3 Persistence and the Hibernate implementation. It will teach you how to run EJB3 Persistence out of the container


Doc Page I mentioned.

Mark
 
Patrick Peak
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My experience with EJB 3.0 is somewhat limited, its just not something I could consider myself expert in.

That said, I think it comes down to "I need to get stuff done now" vs. "I need a way to get stuff done eventually".

Hibernate v3 is also converging a bit with EJB 3.0 as well. Gavin did work with the EJB 3.0 spec group, so a lot of the ideas EJB is going to be using come from the work Hibernate doing for the past few years.
 
Pat Dennis
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,

Good point, I didn't really word my question correctly.

You are right, how the EJB 3.0 spec is implemented is up to each company that provides a J2EE App Server. So one implementation could be easier to use than another one.

I guess I should have titled this "App Server implementing EJB 3.0 spec vs. Hibernate", but the way I did it was easier to read.

 
Pat Dennis
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Patrick, I think that you answered my question when you said:

Originally posted by Patrick Peak:
... I think it comes down to "I need to get stuff done now" vs. "I need a way to get stuff done eventually".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic