aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Understanding Persistence Context Propagation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Understanding Persistence Context Propagation " Watch "Understanding Persistence Context Propagation " New topic
Author

Understanding Persistence Context Propagation

Vish Shukla
Ranch Hand

Joined: Oct 12, 2008
Posts: 111
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..



Thanks & Regards,
Vishal S Shukla (SCJP 93%, SCWCD 94%, SCBCD 100%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Understanding Persistence Context Propagation
 
Similar Threads
MZs Notes - Pg 159
Persitence confusion. Please help.
JTA transaction or resource-local transaction.
application managed persistence context
Application managed EntityManagers with transactions.