Re: diagnosing onException problem?

2014-03-13 Thread Richard Kettelerij
Are you using this code in a route that is part a transaction? Like a JMS transaction? On Fri, Mar 7, 2014 at 10:30 PM, Freeman, Keith wrote: > I have this code in my route: > > onException(Exception.class) > .handled(true) > > .maximumRedeliveries(-1) >

Re: diagnosing onException problem?

2014-03-10 Thread Claus Ibsen
Hi Well there is a little difference in current code between errorHandler and onException. The former will set the backoff = true automatic public RedeliveryPolicy backOffMultiplier(double multiplier) { useExponentialBackOff(); setBackOffMultiplier(multiplier); return

Re: diagnosing onException problem?

2014-03-10 Thread Stephan Burkard
Yes, the Java-DSL-example on page 132 is missing it, but on the same page the book says "You also have to enable exponential backoff explicitly by setting the useExponentialBackOff option to true." ;-) Stephan On Mon, Mar 10, 2014 at 3:11 PM, Keith Freeman <8fo...@gmail.com> wrote: > Thanks fo

Re: diagnosing onException problem?

2014-03-10 Thread Keith Freeman
Thanks for the tip on useExponentialBackoff(), several examples I found using backoffMultiplier() never mentioned that call (including your book, Camel In Action, page 132 :). On 03/08/2014 12:23 AM, Claus Ibsen wrote: Hi You need to turn on backoff with useExponentialBackOff() And debugging

Re: diagnosing onException problem?

2014-03-07 Thread Claus Ibsen
Hi You need to turn on backoff with useExponentialBackOff() And debugging see http://camel.apache.org/how-do-i-debug-my-route.html .. and debugging the source is a bit tougher, but see CamelInternalProcessor which is a central class during Camel routing. On Fri, Mar 7, 2014 at 10:35 PM, Keith F

diagnosing onException problem?

2014-03-07 Thread Freeman, Keith
I have this code in my route: onException(Exception.class) .handled(true) .maximumRedeliveries(-1) .redeliveryDelay(1L * 1000L) .backOffMultiplier(2.0D) .maximumRedeliveryDelay(60L * 1000L) .l

diagnosing onException problem?

2014-03-07 Thread Keith Freeman
I have this code in my route: onException(Exception.class) .handled(true) .maximumRedeliveries(-1) .redeliveryDelay(1L * 1000L) .backOffMultiplier(2.0D) .maximumRedeliveryDelay(60L * 1000L) .

Re: OnException Problem

2013-01-08 Thread Claus Ibsen
exchange.getContext().createProducerTemplate().send("mock:myerror", > exchange); > } > > } > ** > > but it doesn't work . > Where should i put the "OnException(...) on the main program

OnException Problem

2013-01-08 Thread kikou1984
ext().createProducerTemplate().send("mock:myerror", exchange); } } ** but it doesn't work . Where should i put the "OnException(...) on the main program to catch Exception and stop the program. -- View this mess

onException problem

2012-02-22 Thread cmland
-- View this message in context: http://camel.465427.n5.nabble.com/onException-problem-tp5507295p5507295.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: OnException problem

2011-07-26 Thread Claus Ibsen
tails at http://camel.apache.org/exception-clause.html > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/OnException-problem-tp4634025p4634025.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen

OnException problem

2011-07-26 Thread ravi
-- View this message in context: http://camel.465427.n5.nabble.com/OnException-problem-tp4634025p4634025.html Sent from the Camel - Users mailing list archive at Nabble.com.