I think you could accomplish this with two routes. The first route would auto-start, and would watch for the trigger file. When the trigger file arrives, the route would start a second route using the control-bus EIP (http://camel.apache.org/controlbus.html <http://camel.apache.org/controlbus.html>).
The second route would not auto-start, and would process the files. Once it’s finished, it could disable itself using the control-bus EIP. > On Mar 9, 2016, at 9:40 AM, jamesburn <[email protected]> wrote: > > Hello > > I want to have the processing of a batch of 1000s of files triggered by the > arrival of a header file. > > We're working with Spring/Blueprint DSL - I'm no Java expert. > > I spent the morning playing with PollEnrich, but now see that this will only > pickup the first file in the batch. > > Digging deeper, I think that RoutePolicy would work, to start and stop a > route which would collect/process the batch of 1000's but can only find > examples of Quartz2 and throttler triggering another route. > > Is this the best way? Are there any more pertinent examples? > > Thanks > > James > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/file-trigger-processing-lots-of-files-tp5778807.html > Sent from the Camel - Users mailing list archive at Nabble.com.
