users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: always close Response after InvocationCallback?

From: Bill Burke <bburke_at_redhat.com>
Date: Tue, 12 Feb 2013 13:24:52 -0500

On 2/12/2013 9:25 AM, Santiago Pericas-Geertsen wrote:
>
> On Feb 11, 2013, at 3:07 PM, Bill Burke <bburke_at_redhat.com> wrote:
>
>> I think it might be wise to put language in the InvocationCallback interface javadoc that states that when a completed() or failed() method is finished, the underlying Response object will be closed(). This will save the user from having to write a lot of boilerplate code to make sure the Response object is closed.
>>
>
> Could you file a JIRA for this? Thx.
>

So you agree? I kept trying to think of a reason why InvocationCallback
*shouldn't* close the response. I thought any use case requiring
response to be left open should probably be implemented using Futures
instead of callbacks.


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com