thanks. Although i've been over and over the onCompletion and Batch Consumer
doc pages, your prompting at least made me realize i was looking in the
right place! 

So for others who may have this issue, here's the solution. Basically you
test in onCompletion for when the batch is complete. Nice and simple.

                        from("file://mydir?noop=true")
                        
.onCompletion().onWhen(simple("${header.CamelBatchComplete} == true"))
                                .log("In onCompletion!")
                                .to("direct:onwardAndUpward")
                        .end()
                        .to("ftp://user@host//dir?password=pwd";)
                        .end();

                        from("direct:onwardAndUpward").log("ONWARD!!!!").end();

thank you Claus



--
View this message in context: 
http://camel.465427.n5.nabble.com/Starting-a-route-after-another-completes-tp4734464p5746604.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to