I have following camel configuration:
from("file://" + FTP_FILES + "?idempotent=true")
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
throw new RuntimeException("test");
}
}).onException(Exception.class).maximumRedeliveries(0);
This code works in infinite loop and tried to process same file.
Is it possible to configure camel just ignore exception?
P.S.
I also tried
.onException(RuntimeException.class).continued(true);
and
.onException(RuntimeException.class).handled(true)
but result the same
P.S.
I just want behaviour same as this code provide:
from("file://" + FTP_FILES + "?idempotent=true")
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
try{
throw new RuntimeException("test");
} catch(RuntimeException e){
// just ignore
}
}
})