我用,直到成功为止范围面临的问题,使用情况如下骡子重试使用,直到外部Web服务调用过程中成功的范围如果服务停止
骡子流包含: 入境:HTTP端点
出站:http呼出外部网络服务
我设计的流程,使得我在内部定义了我的外部Web服务调用,直到成功范围,要求是,如果外部服务停止并且应该停止重试,该服务已启动并正在运行
我无法实现这一目标。
需要的投入如何,我可以acheive它也是正确的failureExpression需要被定义untillsuccessful范围。
骡子版本(3.5.1) - Anypoint工作室 - 2014年7月
配置:
<until-successful
maxRetries="3"
doc:name="Until Successful"
millisBetweenRetries="5000"
failureExpression="#[exception.causedBy(java.net.ConnectException) ||
exception.causedBy(java.net.SocketTimeoutException) ||
exception.causedBy(java.net.SocketException)]" synchronous="true">
<http:outbound-endpoint exchange-pattern="request-response"
method="POST" address="http://localhost:8088/mockPriceSoapBinding"
doc:name="HTTP" mimeType="text/html" tracking:enable-default-events="true" />
</until-successful>
Mule version,config,或者我们无能为力。 – 2014-10-01 15:12:46