Application Managed Persistence Context Introduction#
What is the Application Managed Persistence Context Introduction?#
- The
Application Managed Persistence Contextis managed by the application (JSE): The application is responsible forPersistence Contextcreation and disposal. The application is also required to ensure that the application createdPersistence Contextis aware of any eventual ongoing Transaction. AnApplication Managed Persistence Context scopeis 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