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.
whenaJTA transaction begins

B.
when the entity manager is created

C.
whenthe entitymanageris invoked in the scope of an active JTA transaction

D.
when theentitymanager is created inthe scopeof an active resource local transaction



Leave a Reply 0

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