On Tue, Jun 26, 2012 at 11:34 AM, stefzar <stef...@hotmail.com> 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: http://camel.apache.org/error-handler.html Don