On Jan 22, 2014, at 4:59 AM, sfont <[email protected]> wrote:
> 
> One last question: if a soap response contains more elements that reference
> the same content id (the correct value not as as in our wrong response) is
> it anyhow necessary to open and close the stream on every DataHandler also
> if they references the same binary content -  file? Perhaps, may a custom
> interceptor (that forces the closure of all attachments ) attached to a
> opportune phase, help to mantain the code cleaner?

That definitely could would work.   At the VERY VERY end of the in chain, you 
could possibly grab the attachment list out of the message and just loop 
through and close each one.   

It’s not something we’d do by default as we don’t know what you are doing with 
the attachments.   People could be grabbing the attachment datahandlers and 
throwing them onto a background thread or something to be processed later.   If 
we consumed/deleted them, that could cause issue.   However, if you know you 
aren’t doing that, a simple interceptor could handle that for you.


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

Reply via email to