camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Narsi Nallamilli <narsi.nallami...@gmail.com>
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"
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.

Mime
View raw message