On Thursday, May 05, 2011 3:59:40 PM Simon Chen wrote:
> Hi all,
> 
> I am wondering how I can report progress back to the client about a
> long-running function?
> 
> Say I have:
> 
> @POST
> @Path("/setup")
> Response setup(...) {
>   ...
> }
> 
> The setup function may take a long time to finish. Returning a
> Response.ok() might be fine, but I'd prefer the client to see
> something in the middle...
> 
> Thanks.
> -Simon

With HTTP, the only real way to do it would be to grab the HttpServletResponse 
and then send "100 Continue" responses back periodically.   I'm not exactly 
sure how that would be accomplished though as I've never really looked at it.


-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to