Re: Irrecoverable faults

2015-01-15 Thread James Green
the irrecoverable faults. If you want to stop the message, you can setup the exchange stop header to be true just like this: exchange.setProperty(Exchange.ROUTE_STOP, Boolean.TRUE); [1]https://camel.apache.org/controlbus.html -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com

Re: Irrecoverable faults

2015-01-09 Thread Willem Jiang
Current Camel ErrorHandler just provides a way to let you handle the error. Even it provides retry mechanism, you still can do some work for the Irrecoverable error. With the ControlBus[1], you can stop the route which has the irrecoverable faults. If you want to stop the message, you can

Irrecoverable faults

2015-01-09 Thread James Green
Should we avoid issuing these? We are implementing some checks that ask, for example, Is the customer allowed to do this? And if the answer is no we're treating this as irrecoverable. Map this to irrecoverable according to Camel in Action Ch 5, Error Handling. Yet this chapter barely touches