Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Himai Minh
Ranch Hand
Posts: 1572
10
  • 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: 1572
10
  • 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: 1572
10
  • 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
Boost this thread!