Hi This has been discussed before on these forums.
Look for on completion onWhen the batch is complete. http://camel.apache.org/oncompletion.html http://camel.apache.org/batch-consumer.html On Wed, Jan 29, 2014 at 4:03 PM, mister blinky <[email protected]> wrote: > I would like to bump this question. It seems like a common scenario that > should be handled in a simpler (to the developer) way. Here's my scenario: > > 1) FTP the contents of a directory to a remote server > 2) When the FTP is complete, do something with the files ... > > So this is the route for (1) > from("file://C:/mydir?noop=true") > .to("ftp://user@host//remotedir?password=password"); > > If i put a .to("direct:xxx") or .to("vm:xxx") then xxx is basically invoked > after EACH file is ftp-ed. I need a way to invoke a flow ONLY after the > entire directory has been FTP-ed. > > I'm sure there's a simple way to ensure that (1) is complete before invoking > (2) ... no? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Starting-a-route-after-another-completes-tp4734464p5746601.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen Make your Camel applications look hawt, try: http://hawt.io
