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

Support inheritance of CDI context across threads (e.g. JobOperator start -> execution) #161

Open
follis opened this issue Aug 18, 2020 · 2 comments

Comments

@follis
Copy link
Contributor

follis commented Aug 18, 2020

CDI has a scope (like for the life of a servlet and all it calls). Could the CDI 'context' from the JobOperator submit caller be picked up and used to inject into the resulting job? This would be essentially on top of any job parameters. Related to other submitter-context propagation requirements.

@scottkurz
Copy link
Contributor

This has come up in other specs, e.g. concurrency:
jakartaee/concurrency#39
(though that issue doesn't seem to be very active and/or a likely candidate for EE 10), and that issue comments this should be treated as a CDI issue.

Will try to watch the other specs here.

@scottkurz scottkurz changed the title Track CDI spec propagation of context (across MgdExecService thread hop) Support inheritance of CDI context across threads (e.g. JobOperator start -> execution) Oct 5, 2021
@scottkurz scottkurz added this to the Batch 2.1 (proposed) - EE 10 milestone Oct 6, 2021
@scottkurz scottkurz removed this from the Batch 2.1 (proposed) - EE 10 milestone Dec 9, 2021
@scottkurz
Copy link
Contributor

Seems we're not going to get to this in 2.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants