The file component has a build in timer. You don't need the first line. <from:"file:// fromDirectory"> <to:"file://toDirectory">
I'm not sure if you really want to read only once from the file system. If yes, you should probably think about an other solution... Best regards - Claus On Tue, Jan 20, 2015 at 6:16 AM, aidatechinc <[email protected]> wrote: > I've used timer, but time manage not to work with a consumer endpoint. The > header/body end up being empty. > > > <from:timer?repeatCount=1> > <to:"file://fromDirectory"> > <to:"file://toDirectory"> > > that doesn't work since I am trying to consumer after the timer. > > thanks > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/how-to-run-a-consumer-route-once-tp5761932.html > Sent from the Camel - Users mailing list archive at Nabble.com. >
