concurrency
concurrency copied to clipboard
Context Service chapter not updated in specification?
I'm looking at https://jakarta.ee/specifications/concurrency/3.0/jakarta-concurrency-spec-3.0.html#contextservice but it makes no mention of jakarta.enterprise.concurrent.ContextServiceDefinition
and still mentions "The following section illustrates some possible configuration options that a Jakarta EE Product Provider may want to provide, instead of mentioning the standard configuration options.
In addition to section 3.3.4 for ContextService, the same applies to ManagedExecutorService (section 3.1.4), ManagedScheduledExecutorService (section 3.2.4) and ManagedThreradFactory (section 3.4.4). It would be nice to switch all of these over to the corresponding resource definition annotation.
In before experience, I try to call Jaxrs component in a Concurrency @Asynchonous
method, the Jaxrs data is missing in the async context.
Jakarta EE requires a Spring Context Propagation like context management to share state seamlessly between varied contexts(ThreadLocal, CDI Context, Async Threads, JDK 9 Flow Reactive Context) when switching contexts.
See: https://github.com/micrometer-metrics/context-propagation