This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JPA Certification (OCEJPA) and the fly likes JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » JPA Certification (OCEJPA)
Bookmark "JPA" Watch "JPA" New topic


Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
If i have JPA code inside an EJB jar, will that be deployed as a bean? As i understand, JPAs work in J2SE environments too? Other than EJB, is there any JPA implementation from Sun?

PS: Am confused between EJB3/JPA/Hibernate. Please clarify.

Christophe Verré

Joined: Nov 24, 2005
Posts: 14687

Yes, there seem to be some confusion here

First, JPA is not beans. JPA is a specification about data persistence. There are no beans, but what is called "Entities". Entites are accessed via an entity manager. It can be used on a EJB3 container or even in J2SE. Again, JPA is a specification. It is implemented by a few JPA containers, like Hibernate or Toplink.

[My Blog]
All roads lead to JavaRanch
subject: JPA
Similar Threads
Mastering Enterprise Java Beans 3.0 vs EJB3 In Action
Can I use Entity class as my managed bean?
EJB3 -> Best optimizzed way for bulk insert ?
How much months for SCBCD
Using Hibernate EntityManager