quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.8k stars 2.68k forks source link

Asynchronous container filters #7405

Closed Meemaw closed 3 years ago

Meemaw commented 4 years ago

Describe the bug I was trying to implement asynchronous container filters. Following the guide from here I was able to suspend the request, but it failed when trying to resume it with org.jboss.resteasy.spi.ApplicationException: javax.enterprise.context.ContextNotActiveException suspendable context jboss

Expected behavior One should be able to use asynchronous container filters and suspend/resume rqeuest.

Actual behavior Request throws on resume().

Environment (please complete the following information):

stuartwdouglas commented 4 years ago

@FroMage does MP context propagation support this properly with RESTEasy now?

FroMage commented 4 years ago

I don't think so, so. I believe ATM only the RESTEasy context is propagated but we should fix this.

Meemaw commented 4 years ago

Any update on this cc @stuartwdouglas @FroMage ?

FroMage commented 4 years ago

No, sorry, no update ATM.

geoand commented 3 years ago

I'm going to go ahead and close this as we have a much better solution in RESTEasy Reactive, see https://quarkus.io/guides/resteasy-reactive#request-or-response-filters