Yes, and if you use the async invoker then I guess you can close it
immediately after a reference to a Future is returned
Sergey
On 12/09/16 21:46, Adam Decatur wrote:
Yes, I am referring to client-side code. Cool, so I have get a response
back from the Web service I should go ahead and close the stream?
-----Original Message-----
From: Sergey Beryozkin [mailto:[email protected]]
Sent: Monday, September 12, 2016 3:41 PM
To: users
Cc: Daniel Kulp
Subject: Re: Question - Who closes the InputStream?
Hi
Thanks for this question, forwarding to the users.
Are you referring to the client side code ? If yes then indeed your code
should close the streams once a call doing the upload returns.
Cheers, Sergey
On 12/09/16 21:31, Adam Decatur wrote:
Hello,
I am developing a Maven JAR in Eclipse that posts a Multipart to a
rest-based web-service. The multipart contains 2 or more Attachments.
The Attachments are being constructed with an InputStream. Do I need
to take care of closing these InputStreams? Or does CXF Apache do this for
me?
Thank you,
Adam
*Adam Decatur*
Enterprise Software
*O* +1 913 227 1812**
*M* +1 330 506 0610**
[email protected] <mailto:[email protected]>
http://www.lexmark.com/common/images/email/lexmark-logo-email-signatur
e.png
<http://www.lexmark.com/>
www.lexmark.com <http://www.lexmark.com>
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/