This week's book giveaways are in the Angular and TypeScript and Web Services forums.
We're giving away four copies each of Programming with Types and The Design of Web APIs and have the authors on-line!
See this thread and this one for details.
Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services 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
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

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
 
We noticed he had no friends. So we gave him this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!