Re: Apace Camel : Custom Redelivery Policy

2016-10-18 Thread Shabin5785
Thanks. Using when to check condition for re-delivery policy works :) -- View this message in context: http://camel.465427.n5.nabble.com/Apace-Camel-Custom-Redelivery-Policy-tp5788891p5788944.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Apace Camel : Custom Redelivery Policy

2016-10-18 Thread Claus Ibsen
You can use onWhen on an onException where the onWhen is a predicate to determine if that onException should trigger or not. Some details here http://camel.apache.org/exception-clause.html If you have a copy of Camel in Action book this is covered much more in details in that book, as it has a fu

Re: Apace Camel : Custom Redelivery Policy

2016-10-18 Thread Quinn Stevenson
Is there a specific exception you can catch when the connection fails? If so, you could use onException to handle that case. onException(ConnectException.class).maximumRedeliveries(3).handled(true).to(jms:dlc) Something like the above should handle #1. > On Oct 18, 2016, at 2:38 AM, Shabin578