This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what are differences between UserTransaction and EntityTransaction ?

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for reading my post.


What are different between UserTransaction and EntityTransaction ?

( in context of EJB 3 and JPA )


Thanks
 
Debu Panda
author
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
UserTransaction is provided by JTA and provided by the application server's JTA Transaction Manager that supports global transaction. The EntityTransaction is essentially a high-level abstraction over a resource localJDBC transaction, as opposed to the distributed JTA transaction. EntityTransaction is supposed to be used when JTA transaction is not available outside the container. We discuss this topic in Chapter 9 of the book
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic