String processFiles= "file://somedirectory?readLock=rename&preMove=inprogress/&move=../processed/&moveFailed=../error/"
String postProcessor = "file://somedirectory/inprogress"; from(processFiles) .threads(10) .routeId("someId") .to("bean:somebean"); from(postProcessor) .routeId("postProcress") .to("bean:postProcessorBean"); Reading files from certain location using multiple threads. Then processing is done in "somebean". Now, i want to do some post processing once all the threads completes first route. i dont understand when exactly to call postprocessor. The way i have done above is giving incorrect results. PostProcessor is getting called before "Somebean" is completed by all the threads. I want to know how do i call postProcess once all the threads finish "somebean" -- View this message in context: http://camel.465427.n5.nabble.com/Apache-camel-Multithreading-in-route-tp5749217.html Sent from the Camel - Users mailing list archive at Nabble.com.