-los,

First of all, ServiceMix shouldn't really put you into trouble. Usually, as long as the file doesn't contain a complete XML message, it will just poll it but the rest of the message handling will fail and the file will remain on the server, just until the processing does succeed.

However, the only way to really avoid this is to have the other partner rename the files after upload (e.g. add .tmp at the end until the upload is done). Some FTP servers can also do the same thing automatically (I think ProFTPd does, but I'm not sure). You can then use a FileFilter on your FTP poller to only download the files that have already been renamed.

BTW, this might be a good opportunity to recommend ServiceMix to the other party as well: our FTP sender also has this rename-after-upload behaviour already built-in ;)


Regards,

Gert

moraleslos wrote:
I'm not sure if this is a SMX issue or a general ftp issue.  I'm currently
running my ftppoller unit and because it polls often, it seems to pick up
files on the server that have yet to finish the upload.  For example, a file
being uploaded on the ftp server is 2MB, but the ftp poller via SMX picks it
up at 512KB and tries to download it.  Is there a way to poll and download
files that have been completely uploaded? Any help would be appreciated. Thanks in advance!

-los

Reply via email to