throws Exception {
> CamelContext context = new DefaultCamelContext();
> context.addRoutes(new MyRouteBuilder());
>
> ProducerTemplate template = context.createProducerTemplate();
> context.start();
>
> for (int i = 0; i < 2; i++) {
>
ProducerTemplate template = context.createProducerTemplate();
context.start();
for (int i = 0; i < 2; i++) {
template.requestBodyAndHeader("direct:start", "bar", "id", "1");
}
}
}
Thanks, Toomas.
--
View this message in context:
http://camel.465427.n5.nabble.com/Setting-message-header-in-aggregate-and-onCompletion-callback-tp5712636.html
Sent from the Camel - Users mailing list archive at Nabble.com.