.log("ending route")
.end(); }}
Whats the diference between .onException and try..catch, that second one
works fine for me?Is there any problem with my aggregation code ?I want to
use .onException because clean my route code.Thanks,Paulo
--
View this message in context:
http://camel.465427.n5.nabble.com/Split-with-Aggregation-when-throw-Exception-issue-tp5750159.html
Sent from the Camel - Users mailing list archive at Nabble.com.
> .log("${body}")
> .doTry() .bean(MyService.class)
> .doCatch(Exception.class)
> .log("error") .doFinally() .log("ending route")
> .end(); }}
> Whats the diference b
Hi,
I forgot to mention camel version.
I use apache Camel 10.6 on linux (Fedora 20). I run it on Jboss Fuse, but I
don't use any especific jboss fuse feature.
Thanks for you help,
Paulo
--
View this message in context:
http://camel.465427.n5.nabble.com/Split-with-Aggregation-when-
gt;
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Split-with-Aggregation-when-throw-Exception-issue-tp5750159p5750210.html
>
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Producer producer = endpoint.createProducer();
Exchange exchange = producer.createExchange();
exchange.setIn(new DefaultMessage());
producer.start();
producer.process(exchange);
producer.stop();
)).onException(Exception.class).handled(true).end()
.throwException(new Exception("error!"))
//.log("OK")
;
}
--
View this message in context:
http://camel.465427.n5.nabble.com/Split-with-Aggregation-when-throw-Exception-issue-tp5750159p5761176.html
Sent from the Camel - Users mailing list archive at Nabble.com.