I created this issue and suggest a trivial patch. However, I don't know if this is the best way to accomplish setting exceptions via Spring xml.
https://issues.apache.org/activemq/browse/CAMEL-813 greenbean wrote: > > Can someone give me an example of configuring an ExceptionPolicyStrategy > in Spring XML? I see the example below on the web. However, I am not > sure how that translates to Spring XML. > > exception(NullPointerException.class) > .maximumRedeliveries(1) > .setHeader(MESSAGE_INFO, constant("Damm a NPE")) > .to(ERROR_QUEUE); > > exception(IOException.class) > .initialRedeliveryDelay(5000L) > .maximumRedeliveries(3) > .backOffMultiplier(1.0) > .useExponentialBackOff() > .setHeader(MESSAGE_INFO, constant("Damm somekind of IO exception")) > .to(ERROR_QUEUE); > > exception(Exception.class) > .initialRedeliveryDelay(1000L) > .maximumRedeliveries(2) > .setHeader(MESSAGE_INFO, constant("Damm just exception")) > .to(ERROR_QUEUE); > > Thanks > -- View this message in context: http://www.nabble.com/ExceptionPolicyStrategy-In-Spring-XML-tp18927372s22882p18932363.html Sent from the Camel - Users mailing list archive at Nabble.com.
