See control bus http://camel.apache.org/controlbus.html
And then you can check the header if the batch is complet and then use the control bus to start the 2nd route. http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/Exchange.html#BATCH_COMPLETE On Thu, Aug 4, 2016 at 12:23 PM, wave <[email protected]> wrote: > Hi all, > > I wan to start the below second router after the first router batch file all > transform finished. > > anyone knows how to implement that? > <route > > <from uri="file:..\dir1"/> > <to uri="sftp://user@ip/dir?password=xxxxx"/> > </route> > > <route > > <from uri="file:..\dir2"/> > <to uri="sftp://user@ip/dir?password=xxxxx"/> > </route> > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-router-manage-tp5786024.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2
