Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

EJB 3.0 and Hibernate

 
Greenhorn
Posts: 26
Hibernate Spring Java
  • 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
 
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.
 
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 Spring Java
  • 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....?
 
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
    Bookmark Topic Watch Topic
  • New Topic