Skip to content

Instantly share code, notes, and snippets.

@ddossot
Created October 4, 2011 00:54
Show Gist options
  • Save ddossot/1260669 to your computer and use it in GitHub Desktop.
Save ddossot/1260669 to your computer and use it in GitHub Desktop.
Mule Redis OS until-successful
<redis:config name="localRedis" />
<flow name="retrying-http-bridge">
<vm:inbound-endpoint path="acme-bridge"
exchange-pattern="one-way" />
<until-successful objectStore-ref="localRedis"
failureExpression="#[header:INBOUND:http.status = 202]"
maxRetries="6"
secondsBetweenRetries="600">
<http:outbound-endpoint address="http://acme.com/api/flakey"
exchange-pattern="request-response"
method="POST" />
</until-successful>
</flow>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment