Hi, I was checking the ESB File connector and found the following issue.
In file connector we open the input stream to read the file and close it in the finally block. We are using the builder based on the content-type or file type. However expected behavior with axiom is it'll only build the structure at the time of consuming. This may happen later in the mediation flow or when sending the message. But by that time stream is already closed and only part of the message will be send. In order to fix this I have checked by adding [1]. This works for some files. However if there are large files and when using relaybuilder issue still exists. I have added [2] and it seems to be working fine. But this is not the best solution. Any idea about this? [1] documentElement.build(); [2] documentElement.toString(); Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
