Reputation: 1503
I have observed that, Mule WEBservice consumer <ws:consumer/>
doesn't have reconnect strategy.
All I need to do retry 3 times when I found socket Time out exception in Web service.
I have used until successfull. But it is not doing retry. Please suggest any idea why for webservice consumer alone until successful is not working.
Have observed, seems to be skipping until successful. Is there any other approach is present so that I can do retry for webservice consumer.
<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 && ( 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>
Could you please any one help me on this.Thanks in advance.
Upvotes: 0
Views: 604
Reputation: 158
What version on Mule you are using? If you are using 3.5 or higher, you can tick the synchronous check box under threading tab and that should resolve the problem.
Upvotes: 1