apache camel - Only retry delivery on 500 responses -


i want retry delivery on 500 errors can't seem find way limit scope of exception status code. code:

onexception(httpoperationfailedexception.class)                 .handled(true)                 .maximumredeliveries(5)                 .redeliverydelay(200);  .to("http4://localhost:8088/ws/v1/camel?bridgeendpoint=true&throwexceptiononfailure=false") 

see camel in action book (1st or 2nd ed) has such example in end of error handler chapter.

you add onwhen onexception add bit of code check status code 500


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -