[jbossts-issues] [JBoss JIRA] (JBTM-3246) Support MP transaction context propagation for async calls for CDI

Ondrej Chaloupka (Jira) issues at jboss.org
Fri Jan 31 05:43:41 EST 2020


     [ https://issues.redhat.com/browse/JBTM-3246?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Issue was automatically transitioned when Ondrej Chaloupka created pull request #1558 in GitHub
-----------------------------------------------------------------------------------------------
    Status: Pull Request Sent  (was: Open)


> Support MP transaction context propagation for async calls for CDI
> ------------------------------------------------------------------
>
>                 Key: JBTM-3246
>                 URL: https://issues.redhat.com/browse/JBTM-3246
>             Project: JBoss Transaction Manager
>          Issue Type: Enhancement
>          Components: JTA
>    Affects Versions: 5.10.3.Final
>            Reporter: Ondrej Chaloupka
>            Assignee: Ondrej Chaloupka
>            Priority: Major
>
> 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



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jbossts-issues mailing list