[cdi-dev] Enhancing SPI to support async operation for contexts
jharting at redhat.com
Thu Feb 19 08:18:09 EST 2015
I agree with Romain that we cannot change the semantics of existing
Furthermore, I think that instead of these tricky context propagations
we should promote async event-driven architecture where as much state as
needed is carried within the message / event payload itself instead of
clients relying on state from context, threadlocal, etc.
On 02/19/2015 10:32 AM, Antoine Sabot-Durand wrote:
> Hi All,
> Beyond the asynchronous event case, shouldn’t we provide a way for user to launch async treatments in CDI with the possibility to keep the existing contexts at the moment of async operation launch?
> Today servlet or JAX-RS spec support async call without the loss of request for instance. Shouldn’t we think to something like that?
> Thanks for your input on that point.
More information about the cdi-dev