concurrency icon indicating copy to clipboard operation
concurrency copied to clipboard

Context Service chapter not updated in specification?

Open arjantijms opened this issue 2 years ago • 2 comments

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.

arjantijms avatar Jun 21 '22 18:06 arjantijms

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.

njr-11 avatar Jun 21 '22 19:06 njr-11

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

hantsy avatar Dec 06 '23 03:12 hantsy