Claus, can you try the following piece of code and check if it works or not? (it doesn't work on my workstation, using camel 2.5.0)
Code from("file:e:/test") .split(body().tokenize(",")) .log("Split line ${body}") .process(new Processor() { public void process(Exchange e) throws Exception { Thread.sleep(2000); } // Simulates long processing happening in my real application }) .end() .log("End of file ${file:name}"); Important: make sure you are on Windows and you need at least two input files in e:\test to see the error. It always happen when camel tries to move the second file (could be a race condition?) Let me know. Thanks -- View this message in context: http://camel.465427.n5.nabble.com/Camel-calling-commit-too-early-when-using-split-seda-file-endpoint-tp2830894p2839249.html Sent from the Camel - Users mailing list archive at Nabble.com.