I have 2 routes:
first:
....
.to("file://" + REST_FILES + "?fileName=${header.filename}");
second:
from("file://" + REST_FILES + "?idempotent=true")
....
But camel doesn't route files in case if I try to transfer same file repeatedly.
I want to have a place(callback for example) if file is not passed to the next pipeline. How can I achieve it?
P.S.
I tried to write:
.to("file://" + REST_FILES + "?fileName=${header.filename}")
.otherwise().process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
logger.info("{}",exchange);
}
});
but it doesn't invoke