Thanks, onWhen pointed me into the right direction.
I can use a predicate like:

rd.onException(Exception.class).continued(new Predicate() {
            @Override
            public boolean matches(Exchange exchange) {
              return myDecision(exchange);
            }
          })

On 13.05.2017 09:35, Claus Ibsen wrote:
You can add  onWhen where you can do a predicate to decide that per message

On Sat, May 13, 2017 at 9:00 AM, Martin Lichtin
<[email protected]> wrote:
One can define a route exception handling to catch and continue:

  rd.onException(Exception.class).continued(true).process(myExceptionHandler)

However, how can one decide on a per-message basis (ie. in
myExceptionHandler) whether to continue with the route or not?

Thanks
- Martin




Reply via email to