On Thu, Feb 14, 2013 at 6:27 PM, deepak_a <[email protected]> wrote:
> Hi,
> Thanks, works fine now after setting the field to false in
>
>                 <to 
> uri="http://www.google.com?throwExceptionOnFailure=false"/>
>
> My aim is to segregate HTTP response status 400 and 500.
> i.e. for HTTP Statuses: 400-499, there should not be any retries while
> status 500+ - we need to retry
> n number of times.
>
> Will post further as I make some progress.
>

Did you figure this out?

There is onWhen and retryWhile which can allow you to plugin custom
code to decide if its an error and/or to retry.


>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-use-throwExceptionOnFailure-false-to-differentiate-HTTP-Status-codes-tp5727591p5727623.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to