L.S., By default, if you read an incomplete XML file and try to process it, processing will fail and the ERROR MessageExchange will result in the file remaining on the server and being tried again a few seconds later. Usually, there's not much you need to do there.
If you want to avoid the overhead over the ERROR exchanges for incomplete files, you can always configure a file filter on the ftp poller endpoint (e.g. so you only pick up .xml files) and then upload the files to the ftp server with another filename (e.g. .tmp as the extension) and rename the file when the upload is complete. Some FTP server daemons (like ProFTPd) will even allow you to do configure that at the FTP server side, so the FTP client does not have to deal with it. If you want to send the file to the FTP server from within ServiceMix, we also have this feature available in our own ftp sender endpoint: if you specify an uploadSuffix, that will be used while uploading and the rename will happen once the file has been uploaded completely. Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ 2009/10/22 youhaodeyi <[email protected]>: > > I set up a ftp poller and whenever a file is uploading to the server, the > poller will send message to a "receiver" SU even if the file has not been > uploaded completely. What I want to do is to get the message in "receiver" > when the file is uploaded to the server, not uploading. How can I do this? > -- > View this message in context: > http://www.nabble.com/How-can-I-know-whether-a-file-is-received-completely-or-not-for-a-ftp-poller--tp26004849p26004849.html > Sent from the ServiceMix - User mailing list archive at Nabble.com. > >
