When does a new persistence context begins?

A developer has obtained a container-managed entity manager with transaction scoped
persistence context. Assume there is no persistence context associated with the entity manager.
When does a new persistence context begins?

A developer has obtained a container-managed entity manager with transaction scoped
persistence context. Assume there is no persistence context associated with the entity manager.
When does a new persistence context begins?

A.
when a JTA transaction begins

B.
when the entity manager is created

C.
when the entity manager is invoked in the scope of an active JTA transaction

D.
when the entity manager is created in the scope of an active resource local transaction



Leave a Reply 0

Your email address will not be published. Required fields are marked *