On Aug 3, 2009, at 10:38 AM, Sam Zang wrote:
> Paul,
>
> I am thinking of the simpler case. My application does
>
> @Path("/mypath")
> public class MyResource {
>
> @POST
> @Consumes("application/json")
> @Produces("application/json")
> @Path("/checkcashing")
> public CheckCashingResponse checkcashing(CheckCashingRequest
> req)
> {
> ...
> }
> }
>
> The POST request may need to use remote resource
> so it could take some time.
>
> I am looking for a way to suspend the request and
> resume it when the processing is done.
>
OK, I agree this is an important case that we need to support.
> I will take a look at Atmosphere project in the mean time.
Since Atmosphere + Jersey has currently focused on Comet/push/
broadcast support i am not sure to what extent the Atmosphere
annotation @Suspend will actually do what is expected. Some
experimentation will be required.
Paul.