Hi, I have a following problem. I use recipientList to have dynamic web
service endpoint. I also want to catch timeout exception on a
CheckWebServiceTimeoutRoute and based on that I would like to call
direct:TryOtherWaysToGetResponse. I set up NoErrorHandler on the
CallWebServiceRoute to enable exception propagation but still I can't get
into onException block. I also try to catch java.lang.Exception or set up
global onException block but with no success. With dynamicRouter there is no
problem but I don't want to use java code to implement stop routing. 
Camel Version: 2.10.0. 

<camel:errorHandler id="NoErrorHandler" type="NoErrorHandler"/>

<camel:route id="CheckWebServiceTimeoutRoute">
  <camel:from uri="direct:CheckWebServiceTimeout"/>
  <camel:onException>
    <camel:exception>java.net.SocketTimeoutException</camel:exception>
    <camel:to uri="direct:TryOtherWaysToGetResponse">
  </camel:onException>
  <camel:setProperty propertyName="RealService">
     <camel:constant>cxf:bean:AddressFromProperty</camel:constant>
  </camel:setProperty>
  <camel:to uri="direct:CallWebService"/>
</camel:route>  
  
<camel:route id="CallWebServiceRoute" errorHandlerRef="NoErrorHandler">
  <camel:from uri="direct:CallWebService"/>
  <camel:recipientList>
    <camel:property>RealService</camel:property>
  </camel:recipientList>
</camel:route>





--
View this message in context: 
http://camel.465427.n5.nabble.com/cxf-recipientList-and-error-handling-tp5717160.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to