Hi You can control the other route for example as, eg to start|stop it etc http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html
Or in Camel 2.11 use the control bus component http://camel.apache.org/controlbus.html On Tue, Apr 16, 2013 at 10:49 AM, Okello Nelson <[email protected]> wrote: > Hi Guys, > > Having a route DSL as: > > from("file:" + classesBaseDir + "/" + fileType + > "/step0?preMove=inprogress&moveFailed=.error&move=.done&readLock=true") > .routeId(dirRepoPrefix + fileType + "-To-" + queuePrefix + fileType + > "_ParsingQ") > .threads(50) > .split().tokenize("\n", 5).streaming().parallelProcessing() > .doTry().to(queuePrefix + fileType + "_ParsingQ?asyncConsumer=true") > .doCatch(Exception.class).to(queuePrefix + fileType + "_InvalidParsingQ"); > > There's another route that consumes the exchanges of the "...ParsingQ". > However, I want exchanges at "...ParsingQ" to be consumed only when all the > files have been loaded into the queue. Is there a way I can implement this? > > Thanks a lot in advance. > > Kind Regards, > Okello Nelson. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
