Split with Aggregation when throw Exception issue

2014-04-13 Thread paulo.neves
.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.

Re: Split with Aggregation when throw Exception issue

2014-04-14 Thread Claus Ibsen
> .log("${body}") > .doTry() .bean(MyService.class) > .doCatch(Exception.class) > .log("error") .doFinally() .log("ending route") > .end(); }} > Whats the diference b

Re: Split with Aggregation when throw Exception issue

2014-04-14 Thread paulo.neves
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-

Re: Split with Aggregation when throw Exception issue

2014-04-14 Thread Willem Jiang
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. >

Re: Split with Aggregation when throw Exception issue

2014-12-30 Thread Guillaume
Producer producer = endpoint.createProducer(); Exchange exchange = producer.createExchange(); exchange.setIn(new DefaultMessage()); producer.start(); producer.process(exchange); producer.stop();

Re: Split with Aggregation when throw Exception issue

2014-12-30 Thread Guillaume
)).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.