Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Understanding Persistence Context Propagation  RSS feed

Vish Shukla
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am messed up with understanding concepts of JTA transactions, BMT/CMT, Persistence context with transaction propagation.

From EJB3 Specs :
The extended persistence context exists from the point at which the entity manager has been created
using EntityManagerFactory.createEntityManager until the entity manager is closed by
means of EntityManager.close. The extended persistence context obtained from the application-
managed entity manager is a stand-alone persistence context—it is not propagated with the transaction.

I am not very clear with what can be the consequences of persistence context not being propagated with the transaction.

EJB1 :

Please also suggest that if there is any thing invalid in this code?? I have just created this hypothetical code to explain my doubt. In deadly need to clear these confusions.

Thanks in advance..

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!