Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction context propagation #102

Open
njr-11 opened this issue Nov 13, 2019 · 1 comment
Open

Transaction context propagation #102

njr-11 opened this issue Nov 13, 2019 · 1 comment
Labels
enhancement New feature or request microprofile For compatibility with MicroProfile Type: New Feature
Milestone

Comments

@njr-11
Copy link
Contributor

njr-11 commented Nov 13, 2019

MicroProfile Context Propagation includes the ability to propagate JTA transactions to completion stage actions and executor tasks. Much of the capability is considered optional, acknowledging that some transaction managers will not have the ability to use a transaction across multiple threads, or to perform transactional operations simultaneously from multiple threads. MicroProfile documentation for this can be found here.
Some of the scenarios could benefit from some better APIs from the transaction manager, so there could be some opportunity for collaboration with the JTA spec, if this is pursued.

One other difference is that MicroProfile treats transaction context the same as any other type of context, vs how Jakarta EE Concurrency uses an execution property to provide behavior that corresponds to MicroProfile's cleared or unchanged configuration at the executor level. I wouldn't consider this an obstacle, just something to remember to account for if work is done in this area.

@njr-11 njr-11 added enhancement New feature or request Type: New Feature microprofile For compatibility with MicroProfile labels Nov 13, 2019
@smillidge smillidge added this to the 3.0 milestone Mar 11, 2021
@smillidge smillidge added this to Proposed in Concurrency 3.0 Mar 17, 2021
@njr-11 njr-11 modified the milestones: 3.0, 3.1 Jan 13, 2022
@hantsy
Copy link

hantsy commented Apr 20, 2023

Spring uses https://github.com/micrometer-metrics/context-propagation to switch between different context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request microprofile For compatibility with MicroProfile Type: New Feature
Projects
No open projects
Development

No branches or pull requests

3 participants