camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vss123 <vss...@gmail.com>
Subject Retry based on HTTP response codes
Date Wed, 27 Mar 2013 14:11:42 GMT
Hi,

We use camel 2.10.3 with Scala DSL.

We have route that does a http post. We want to retry based on the response
code.
For e.g. no retries for 4xx and 2 retries for 5xx

We tried using handle[HttpOperationFailedException] but not sure how to get
the response code within that.
Can you help us with whats the best way to handle this case?



--
View this message in context: http://camel.465427.n5.nabble.com/Retry-based-on-HTTP-response-codes-tp5729939.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message