I have the following route:
context.addRoutes(new RouteBuilder {
// Read the file(s) from the directory
"file:perf?delete=true" ==> {
// Split the file up at each line
split(_.getIn().getBody(classOf[String]).split("\n")) {
// The further split up the processing across multiple parsers
loadbalance roundrobin {
// Reference to my internal components
to("direct:x")
to("direct:y")
to("direct:z")
}
// Join back the results from aboce
// then split it out again turning off commit level changes
}.loadbalance roundrobin {
to("jdbc:dataSource?resetAutoCommit=false")
to("jdbc:dataSource?resetAutoCommit=false")
to("jdbc:dataSource?resetAutoCommit=false")
}
}
The behavior I'm see is that if I have multiple files, they aren't deleted
once they are processed. Any reason why not?
--
View this message in context:
http://camel.465427.n5.nabble.com/File-Processor-Not-deleting-the-files-tp5670301p5670301.html
Sent from the Camel - Users mailing list archive at Nabble.com.