【发布时间】:2016-07-21 09:42:50
【问题描述】:
我在 Mule 3.7 中整理了一个直到成功(见下文):
<until-successful maxRetries="100" failureExpression="#[exception != null && (exception.causedBy(java.net.ConnectException) || exception.causedBy(java.net.SocketTimeoutException)) || message.inboundProperties['http.status'] != 500]" synchronous="true" millisBetweenRetries="20000" doc:name="UntilSuccess">
<processor-chain>
<set-payload value="#[flowVars.operationPayLoad]" doc:name="GetTransactionRequest" />
<ws:consumer config-ref="GetTransactionWSConsumerConfig" operation="execute" doc:name="GetTransaction" />
</processor-chain>
我只对在 Web 服务关闭或超时时进行直到成功重试感兴趣。 until-successful 不应重试任何其他异常。
但是,我做了一个测试,我得到一个 org.mule.module.ws.consumer.SoapFaultException 但直到成功一直尝试调用 Web 服务。
我如何告诉直到成功忽略所有异常并停止重试,除非 Web 服务关闭或超时?
干杯
最大
【问题讨论】:
标签: web-services timeout mule esb timeoutexception