Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1362

Support coordinations triggered by transaction markers

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • transaction-blueprint-1.0.2
    • Transaction
    • 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

          Activity

            People

              cschneider Christian Schneider
              cschneider Christian Schneider
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: