String processFiles=
"file://somedirectory?readLock=renameꚷ貢=inprogress/骋=../processed/骋?ꢥ=../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"
"file://somedirectory?readLock=renameꚷ貢=inprogress/骋=../processed/骋?ꢥ=../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"