Application Managed Persistence Context Introduction#
What is the Application Managed Persistence Context Introduction?#
- The
Application Managed Persistence Context
is managed by the application (JSE): The application is responsible forPersistence Context
creation and disposal. The application is also required to ensure that the application createdPersistence Context
is aware of any eventual ongoing Transaction. AnApplication Managed Persistence Context scope
is alwaysExtended persistence scope
. - For the
Application Managed Persistence Context
, developers have to create each time the EntityManager from theEntityManagerFactory
. They have more control over the flow, but also more responsibilities (e.g. they have to remember to close theEntityManager
, they have to explicitly call commit and rollback operations). - You can find more here
- You can find more here
- You can find more here