Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Henrik Brautaset Aronsen
On Mon, Oct 12, 2015 at 12:35 PM, Joakim Bjørnstad wrote: > > Well right now it doesn't seem possible in that order, which is > unfortunate. > > Maybe you can consider changing the order in your exception handling? > Since you want to mark the failed exchange handled anyways. > Wiretap new exchang

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Joakim Bjørnstad
On Mon, Oct 12, 2015 at 11:46 AM, Henrik Brautaset Aronsen wrote: > On Mon, Oct 12, 2015 at 10:44 AM, Joakim Bjørnstad > wrote: > >> onException(NullPointerException.class) >> .wireTap("someUri").end() >> .handled(true) >> .bean("someBean"); >> >> Allows you to return to the OnExceptionDefi

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Henrik Brautaset Aronsen
On Mon, Oct 12, 2015 at 10:44 AM, Joakim Bjørnstad wrote: > onException(NullPointerException.class) > .wireTap("someUri").end() > .handled(true) > .bean("someBean"); > > Allows you to return to the OnExceptionDefinition. > > Seems there was a change in 2.16.0 that makes newExchange and some

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Joakim Bjørnstad
Hello, onException(NullPointerException.class) .wireTap("someUri").end() .handled(true) .bean("someBean"); Allows you to return to the OnExceptionDefinition. Seems there was a change in 2.16.0 that makes newExchange and some other fluent builders to not return to the previous type in the D

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Henrik Brautaset Aronsen
On Mon, Oct 12, 2015 at 10:29 AM, Claus Ibsen wrote: > You need to end that would take you back to the onException. > Hi Claus, thanks for the swift reply. But I don't quite get what you're saying, could you give me an example? Henrik

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Claus Ibsen
You need to end that would take you back to the onException. On Mon, Oct 12, 2015 at 10:09 AM, Henrik Brautaset Aronsen wrote: > On Mon, Oct 12, 2015 at 10:06 AM, Henrik Brautaset Aronsen > wrote: > >> But in 2.16.0 it seems like .handle(..) isn't available anymore. Any >> suggestions on how

Re: Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Henrik Brautaset Aronsen
On Mon, Oct 12, 2015 at 10:06 AM, Henrik Brautaset Aronsen wrote: > But in 2.16.0 it seems like .handle(..) isn't available anymore. Any > suggestions on how to mark this as handled now? > Sorry, typo. Obviously I mean .handled(boolean). Henrik

Missing handle(boolean) in Camel 2.16.0

2015-10-12 Thread Henrik Brautaset Aronsen
This worked in 2.15.x: RoutesDefinition routeDef = someRouteDef(); routeDef.onException(someException) .wireTap(someUri) .newExchange(someProcessor) .end() .handle(true) .bean(someBean); But in 2.16.0 it seems like .handle(..) isn't available anymore. Any suggestions on how to mar