直到成功不适用于 WebService 使用者 - Mule ESB



我观察到,Mule WEBservice消费者<ws:consumer/>没有重新连接策略。当我在 Web 服务中发现套接字超时异常时,我需要重试 3 次。

我一直使用直到成功。但它不是在重试。请提出任何想法,为什么仅对于Web服务消费者,直到成功是不起作用的。

已经观察过,似乎正在跳过直到成功。是否有任何其他方法,以便我可以对 Web 服务使用者进行重试。

<logger message="***Process*****MessageId:#[message.rootId]***No:#[flowVars.Id]***" level="INFO" doc:name="Logger"/>
  <until-successful objectStore-ref="objectStore" maxRetries="5" millisBetweenRetries="20000" failureExpression="#[exception != null &amp;&amp; ( exception.causedBy(java.net.ConnectException) || exception.causedBy(java.net.SocketTimeoutException)) ||   message.inboundProperties['http.status'] ==503]" doc:name="Until Successful">
<ws:consumer config-ref="Web_Service_Consumer_customer" operation="CreatePdt" doc:name="Create product"/>
 </until-successful>

你能不能请任何人帮我。提前谢谢。

你在骡子上使用什么版本?如果您使用的是 3.5 或更高版本,则可以勾选线程选项卡下的同步复选框,这应该可以解决问题。

最新更新