Yes - please share simplified versions of your routes. I’m sure we can come up with something.
> On Mar 15, 2016, at 6:21 AM, jamesburn <james.b...@oup.com> wrote: > > Hi > > Many thanks for your hints Quinn. > > With some playing, I've got Controlbus to work fairly well. I could have > done with using that a year ago! > > Regarding stopping the second (main processing) route, I was leaning towards > using the exchange property CamelBatchComplete as a trigger. However, this > seems to be set to true as soon as the last file file is collected, not > processed/deposited, so if there's a delay in the processing of a file, it > is stopped too early. I tested this by putting a delay in my route for one > message. > > I thought about having another route count the number of files in the "done" > folder and somehow use this as a route-stop-trigger, but I can't get the > number of files to expect, and in any case feel I'm not really using Camel > the way it's intended. > > Have you any other thoughts/tricks I can use? Shall I post a stripped down > version of my routes? > > Thanks > > James > > > James > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/file-trigger-processing-lots-of-files-tp5778807p5779088.html > Sent from the Camel - Users mailing list archive at Nabble.com.