aspose file tools*
The moose likes Object Relational Mapping and the fly likes Question for Authors: Hibernate vs. EJB 3.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Question for Authors: Hibernate vs. EJB 3.0" Watch "Question for Authors: Hibernate vs. EJB 3.0" New topic
Author

Question for Authors: Hibernate vs. EJB 3.0

Pat Dennis
Greenhorn

Joined: Apr 19, 2005
Posts: 12
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

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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

Joined: Aug 23, 2005
Posts: 19
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.


Hibernate Quickly - <a href="http://www.manning.com/books/peak" target="_blank" rel="nofollow">http://www.manning.com/books/peak</a>
Pat Dennis
Greenhorn

Joined: Apr 19, 2005
Posts: 12
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

Joined: Apr 19, 2005
Posts: 12
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".
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question for Authors: Hibernate vs. EJB 3.0