On Mon, May 7, 2012 at 6:11 PM, rdifrango <ron.difra...@gmail.com> wrote: > OK...so it does not seem to fully correct the issue: > > public void configure() { > > from("file:perf?delete=true&idempotent=true").convertBodyTo(String.class) > > .split(body().tokenize("\n")).streaming() > .process(lineSplitter) > > .to("jdbc:dataSource?resetAutoCommit=false").end(); > } > > I'll try loading the entire file into memory next. >
convertBodyTo loads the file into memory. Can you try to remove pieces of your route, until you get a point where the file is not locked anymore? And if you enable DEBUG or TRACE logging level on org.apache.camel.util.FileUtil then it ought to log delete attempts. > -- > View this message in context: > http://camel.465427.n5.nabble.com/File-Processor-Not-deleting-the-files-tp5670301p5691470.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cib...@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/