camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Whytock <>
Subject Re: Changing from file-consumer to ftp-consumer
Date Tue, 26 Jun 2012 17:13:20 GMT
On Tue, Jun 26, 2012 at 11:34 AM, stefzar <> wrote:
> Thank you for your answer so far but it is a bit more difficult.
> In our program it may happen that we are polling on folders which do not
> exist. With the file Component it sends an emptyMessage if the folder should
> not exist, but with the FTP Component we get an Exception instead which
> tells us that the directory was not found:
> org.apache.camel.component.file.GenericFileOperationFailedException: File
> operation failed: 550 CWD failed. "/Notification/IDCard/20120528-00":
> directory not found.
> How can I manage to get the same behaviour with the FTP-Component as we have
> with the file-Component, when polling on non existent folders?

Sounds like you'd need to catch the exception and generate an
emptyMessage.  Have a look at Error Handling:


View raw message