camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Narsi Nallamilli <>
Subject Re: camel CxfRsProducer not returning appropriate error status codes
Date Sun, 20 Mar 2016 13:16:26 GMT
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"

    <from uri="cxfrs:bean:aiRsServer"/>
    <process ref="aiRestServerProcessor" id="a"/>
    <to pattern="InOut" ref="aiRestProducer"/>
    <process ref="aiRestProducerProcessor" id="b"/>

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message