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

Until Successful is not working for WebService consumer - 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>

能否请任何人提前帮我this.Thanks。

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