users@jersey.java.net

Jersey/JAX-RS and async servlets

From: Chris Toomey <ctoomey_at_yahoo-inc.com>
Date: Wed, 15 Sep 2010 09:12:42 -0700

  We're looking to use both Jersey/JAX-RS and Jetty async continuations
(later the equivalent async mechanism in the Servlet 3.0 API) for
implementing a web service, and looking at the JAX-RS spec.
(https://jsr311.dev.java.net/nonav/releases/1.1/spec/spec.html) it looks
like the API model is incompatible w/ the async continuations model.
Specifically, it stipulates that resource class methods must return a
return value and that if it's void, an immediate 204 response is sent.

Can anyone confirm this or explain how a Jersey/JAX-RS resource method
would suspend itself w/o causing the response to the client to be committed?

thx,
Chris