Hi guys, Thanks for your replies, but none of them worked for me. Probably I am still doing somthing wrong, I just starting with camel.
In my tests, the interceptor only worked when a file was actualy received, so looks like I cannot use it do do what I want. About the custom polling strategy I used this dummy class: public class CustomPollingConsumerPollStrategy implements PollingConsumerPollStrategy{ @Override public boolean begin(Consumer arg0, Endpoint arg1) { return false; } @Override public void commit(Consumer consumer, Endpoint endpoint, int polledMessages) { if(polledMessages == 0){ System.out.println("File not found"); throw new RuntimeException("File not found"); } else { System.out.println("File found"); } } @Override public boolean rollback(Consumer arg0, Endpoint arg1, int arg2, Exception arg3) throws Exception { return false; } } But when I reference it in my file endpoint, everything stops working, even the the file was actually received the route does not work. What am missing here? Thanks, Bruno. -- View this message in context: http://camel.465427.n5.nabble.com/File2-endpoint-issue-tp5644759p5647196.html Sent from the Camel - Users mailing list archive at Nabble.com.