camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" <>
Subject Re: HttpOperationFailedException question
Date Tue, 16 Dec 2008 15:21:24 GMT

Sorry you need Camel 1.5.1 or later. There is a new predicate you can
attach the onException, it's onWhen where you can do your custom code
logic to determine what should happen


The fine grained section which explains the onWhen

And the http component adds the response code as a header to the
message so you can use a header predicate to test.

HttpProducer.HTTP_RESPONSE_CODE 	 int 	 The http response code from
the external server. Is 200 for OK. Is set on the OUT message.

On Tue, Dec 16, 2008 at 4:15 PM, boriss <> wrote:
> Hi,
> I want to be able to set different redeliveryStrategy  if the
> HttpOperationFailedException returns for example 4xx other then 5xx. Is this
> possible with the "onException" clause??
> Many thanks,
> Regards
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at


/Claus Ibsen
Apache Camel Committer

View raw message