You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Rice Yeh <ri...@gmail.com> on 2010/11/27 17:57:59 UTC
A returned InputStream from a rest method will be closed by cxf?
Hi,
I have a rest method returning InputStream. I just wonder whether the
returned InputStream will be closed by cxf? Otherwise, it will cause some
resource leaking. right?
Regards,
Rice
Re: A returned InputStream from a rest method will be closed by cxf?
Posted by Sergey Beryozkin <sb...@gmail.com>.
HI - yes - it's closed by default after it's been copied over to the output
stream
cheers, Sergey
On Sat, Nov 27, 2010 at 4:57 PM, Rice Yeh <ri...@gmail.com> wrote:
> Hi,
> I have a rest method returning InputStream. I just wonder whether the
> returned InputStream will be closed by cxf? Otherwise, it will cause some
> resource leaking. right?
>
> Regards,
> Rice
>