users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Response.close() required?

From: Sergey Beryozkin <sberyozkin_at_talend.com>
Date: Fri, 20 Jan 2012 17:31:20 +0000

On 20/01/12 17:26, Bill Burke wrote:
> Other than a finalize method, Response has no idea when to close the
> InputStream (except after a getEntity() or a 204).
>
> required then?

Can that interfere somehow with per-request implementations which may be
cleaning up the resources in @PreDestroy ?

Sergey

>
> On 1/20/12 11:22 AM, Marek Potociar wrote:
>> Do you have any preference? If yes, why?
>>
>> Marek
>>
>> On 01/20/2012 12:40 AM, Bill Burke wrote:
>>> Should probably be specified in javadoc and spec whether or not
>>> close() is a required action.
>>>
>