• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Question for Authors: Hibernate vs. EJB 3.0

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
ranger
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 17346
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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".

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic