camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reinhard Prechtl <Reinhard.Prec...@akqa.com>
Subject HTTP component: Handling error codes
Date Mon, 05 Nov 2012 16:21:16 GMT
Hi there,

I'm maintaining an existing camel based solution that integrates a REST based web-service.
Right now I face the problem, that in case of a non 200 HTTP response, the route doesn't execute
past the http-component, meaning processors after the http-component are not called.
The HTTP component has the  "throwExceptionOnFailure" parameter set to "false", as far as
I understand this should result in a continued route execution after a 400 error code (in
my case).

Here's the route:

from("cxfrs://bean:restServer")
.process(someProcessorBeforeHttpComponent)
.setHeader(Exchange.HTTP_QUERY, simple("bridgeEndpoint=true&throwExceptionOnFailure=false"))
.setBody(Builder.simple(""))
.to("http://dummyHost")
.process(someProcessorAfterHttpComponent);

"someProcessorAfterHttpComponent" isn't executed anymore.

How come, any ideas?

Thanks for you inputs!

Cheers,
Reinhard

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message