• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB 3.0 and Hibernate

 
Prateek Jauhari
Greenhorn
Posts: 26
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to Hibernate with EJB 3.0...?
Any tutorial or something....

I am trying to use hibernate to persist data in database, through a stateless session bean.....
But i am not able work it how things gonna work here.....

Is there any tutorial for using hibernate in EJB3.0 ?

Thanks

Regards
Prateek
 
Sahil Dave
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why don't you try out EJB3's very own Object Relational Mapping API - JPA(Java Persistence API), instead of Hibernate.
 
Pallav Bora
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a thought on a slightly different note:

EJB 3 is a vendor independed API. But the vendor can choose their own implementation of the API. For Example JBoss's EJB3 implementation is based on Hibernate while Oracle EJB 3 implementation is based on Toplink. So if you use EJB 3 on JBoss you will getting all the benefits of hibernate without using it directly.
 
Prateek Jauhari
Greenhorn
Posts: 26
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to Use Hibernate As Per The Requirement.....

Is there any way to include hibernate things in a bean module....?
 
Vadym Baranenko
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So why not to use JPA + Hibernate as a data provider like it does in SEAM ? http://seamframework.org
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!