• 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
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

how Hibernate, JPA, EJB3, JTA, JDBC Transactions are interlinked?

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Can anyone please give me some clarity/overview on these things and how they are interlnked?

Thanks
Ashok.
 
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

AshokKumar reddy wrote:Hi,

Can anyone please give me some clarity/overview on these things and how they are interlnked?

Thanks
Ashok.



Maybe you can explain what you mean by interlinked? I am not sure what you are asking.

Thanks

Mark
 
AshokKumar reddy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am new to persistence world.I have doubts like following:

1)Is Hibernate Entity Manager module is itself JPA or JPA is different?
2) heard something like EJB3 uses JPA, I don't know how?
3)Is Hibernate uses JTA for tansaction demarcations or uses JDBC Tx demarcations, or any other info about that stuff.


Thanks
Ashok
 
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
OK, now your question makes sense.

JPA is just a specification, not an actual implementation. Products like Hibernate, Toplink, OpenJPA implement the JPA specification. Usually these products go above and beyond what is in the specification. Meaning adding more features.

EJB 1 and 2 had Entity Beans, which to put mildly, sucked. So in EJB3, the removed Entity Beans and created JPA instead, and pulled it out of the EJB spec. In JPA 1.0 it was part of Java EE 5, which does include EJB3, JSF, JSP/Servlets etc.

Transactions are created by TransactionManagers, not by Hibernate or a JPA implementation. So JDBC Transactions, JTA Transactions, etc are just Transactions.

Products like Hibernate are written such that the choice of TransactionManager/Transactions is independent of Hibernate. Hibernate just works with them automatically.

Hope that helps

Mark
 
AshokKumar reddy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That really hepls...thanks much...

thankq,
Ashok
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic