Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3246

Support MP transaction context propagation for async calls for CDI

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 5.10.3.Final
    • Fix Version/s: 5.10.5.Final
    • Component/s: JTA
    • Labels:
      None

      Description

      For full integration of Narayana CDI handling to MicroProfile context propagation it needed to support context propagation for asynchronous calls.

      Currently asynchronous call is handled just synchronously. That means the transaction is finished just at time when CDI interceptor finishes with the business method. While there could be some unfinished async call running aside of the main method. The async then may work with already finished transactions which lead to an error.

      Here we aim to integrate with MicroProfile Smallrye implementation. The approach will be adapted from Quarkus. The point is to delay finishing of the transaction up to time the async method is finished as well.

      The Quarkus code for this here:
      https://github.com/quarkusio/quarkus/pull/2321/files#diff-9fae5ceb58cc73dc93ce866afa76505bR116

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ochaloup Ondrej Chaloupka
              Reporter:
              ochaloup Ondrej Chaloupka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: