Thanks, only one comment re the previous message where you showed the
code casting ContainerResponseContext to its CXF implementation, this is
not needed in general;
I'm still planning to investigate how to handle the flow without relying
on "throwExceptionOnFailure=false", but good to know you made it work...
Sergey
On 20/03/16 13:16, Narsi Nallamilli wrote:
Thank you all for helping.
I could solve my purpose by adding throwExceptionOnFailure=false to the
producer endpoint. By doing so the error header what ever it is, is
propagating to the caller, without the producer creating a exception out of
the status greater than 400.
<endpoint uri="cxfrs://bean://rsClient?throwExceptionOnFailure=false"
id="aiRestProducer"/>
<route>
<from uri="cxfrs:bean:aiRsServer"/>
<process ref="aiRestServerProcessor" id="a"/>
<to pattern="InOut" ref="aiRestProducer"/>
<process ref="aiRestProducerProcessor" id="b"/>
</route>
--
View this message in context:
http://camel.465427.n5.nabble.com/camel-CxfRsProducer-not-returning-appropriate-error-status-codes-tp5779161p5779315.html
Sent from the Camel - Users mailing list archive at Nabble.com.