Hi ,
When we set parallel processing in a route, do all processors run in
parallel or in sequence?
MY requirement is that i have 5-6 processors in my route and i want then to
be executed in parallel even for a single message, how can i achieve this?
from("direct:endpoint")
.throttle(Long.parseLong(routeParams.get(RouteParam.THROTTLE)))
.setBody().body(PaymentRequest.class)
.parallelProcessing()
.thread(4)
.setHeader(ORIGINAL_REQUEST).javaScript("request.body")
.convertBodyTo(PaymentRequest.class)
.process(processor1)
.process(processor2)
.process(processor3)
.process(processor4)
.end()
--
View this message in context:
http://camel.465427.n5.nabble.com/Processors-in-parallel-mode-tp5731613.html
Sent from the Camel - Users mailing list archive at Nabble.com.