camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jackw <>
Subject cxf - recipientList and error handling
Date Sat, 11 Aug 2012 17:31:48 GMT
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:to uri="direct:TryOtherWaysToGetResponse">
  <camel:setProperty propertyName="RealService">
  <camel:to uri="direct:CallWebService"/>
<camel:route id="CallWebServiceRoute" errorHandlerRef="NoErrorHandler">
  <camel:from uri="direct:CallWebService"/>

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

View raw message