Hi,

My scenario is simple - monitor (using FilePoller) some directory. If a file
shows up - then FTP this file to server. The problem is that sending of
first file is ok, however, for next files there is something wrong. File is
created on FTP server but without size (size: 0).

I figured out that I'm getting an exception "No output stream available for
output name: " + name + ". Maybe the file already exists?". However, I'm
sure that filename is unique.

The reason of that could be a fact that FTPSender is using object pool for
commons.net.FTPClient. Looking at API for FTPClient I saw that after each
operation it should be closed and opened again.

Do you have any idea how that can be configured ?
-- 
View this message in context: 
http://www.nabble.com/FTPSender-and-multiple-files-tf2813870s12049.html#a7852452
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to