jakartaee / batch

The Jakarta Batch project produces the Batch Specification and API.
https://projects.eclipse.org/projects/ee4j.batch
Apache License 2.0
13 stars 17 forks source link

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

Open follis opened 3 years ago

follis commented 3 years ago

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 commented 2 years ago

This has come up in other specs, e.g. concurrency:
https://github.com/eclipse-ee4j/concurrency-api/issues/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 commented 2 years ago

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