Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
AshokKumar reddy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks
Ashok.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
  • 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
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
That really hepls...thanks much...

thankq,
Ashok
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic