Details
-
New Feature
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
transaction-blueprint-1.0.2
-
None
Description
The new JPA component uses coordinations to manage the lifecycle of the JPA EntityManager.
The blueprint transaction support should create a coordination for all transaction markers. This will allow the JPA entitymanager to have a controlled lifecycle that is larger than the DAO method.
So for example a service method that calls several DAO methods can be marked with @Transactional. It will then create a coordination for the method and close the EntityManager only after the whole service method.
If the service method does not need a transaction it can be annotated with TxType.SUPPORTS. In this case only the coordination will be started. So the EM lifecycle can be declared using an annotation without the performance impact of a transaction.
Attachments
Issue Links
- relates to
-
ARIES-2050 Aries JPA 2.7 shouldn't always reuse EM instance from previous coordinations
- Resolved