【发布时间】:2017-06-27 16:59:45
【问题描述】:
我使用 until-successful 多次重试连接,在我的重试策略已用尽的情况下,我想优雅地记录错误(不引发异常)。 我尝试过使用默认异常策略,如下所示:
<until-successful objectStore-ref="objectStore"
deadLetterQueue-ref="ErrorHandler" maxRetries="${TMSService.numOfRetries}"
secondsBetweenRetries="${TMSService.retrySecInterval}">
<outbound-endpoint address="${TMSService.host}" />
</until-successful>
<default-exception-strategy>
<vm:outbound-endpoint path="ErrorMsgs" />
</default-exception-strategy>
但这仍然无法捕获该异常,处理此问题的正确方法是什么?
谢谢 谢谢
【问题讨论】:
标签: mule