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

Why EntityManager. joinTransaction is not needed for shared application managed JTA

 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, in chp 6 of JPA Pro, there is an example, sharingApplicationManagedJTA,




 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I modify another example from JPA PRO 2nd edition , chapter 6 's applicationManagedJTA example:
 
Himai Minh
Ranch Hand
Posts: 1361
7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I modified the example again. It works without joinTransaction.


Reference:http://piotrnowicki.com/2012/11/types-of-entitymanagers-application-managed-entitymanager/.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic