Yes, the transport needs be configured to enable Async/Continuations.

However, looking at the code, CXF NettyHttpDestination does not wrap a Netty-specific continuation/suspended invocation mechanism into CXF Continuation (Netty Reactor ?), only CXF Servlet and Jetty HTTPDestinations do it (they link Servlet3 and Jetty specific continuations to CXF Contination).

So, no JAX-RS 2.0 AsyncSupport on top of Netty transport. I guess I can create a minor JIRA for that

Sergey

On 09/09/15 09:20, Gianluca Stivan wrote:
Upon more googling, it looks like you need to explicitly enable async
support using `sh.setAsyncSupported(true);`, at least with Jetty.
Not sure how to do that in Netty (if it's even possible, because looking at
the code I have found no mention of a similar method, so far)

Will keep digging :)

2015-09-09 10:05 GMT+02:00 Gianluca Stivan <[email protected]>:

I tried the basic example and can indeed confirm it works, thank you!
Next I will try the Swagger example (which seems a bit more complex
because of how tightly integrated with Jetty it is).

Regarding the topic of AsyncResponse (which interests me as well), I tried
adding a @Suspended annotation, but I'm getting a NullPointerException:

Details and code here ->
https://gist.github.com/yawnt/a9f5d154709811026a79

Any idea, by any chance?
Thank you very much :)

Gianluca



Reply via email to