I added IMAP connector to my Mule instance, for some email message processing. During Mule start up, if connector is not able to connect to IMAP, it throws exception and prevent Mule app from starting up. Is there any way prevent this for happening? For example, if connector fails, it should try to reconnect maybe in separate thread, but the rest of the app should be able to function, or the error should be ignored, and the rest of the flows should be initialised.
我将IMAP连接器添加到我的Mule实例,用于某些电子邮件处理。在Mule启动期间,如果连接器无法连接到IMAP,则会抛出异常并阻止Mule应用程序启动。有没有办法防止这种情况发生?例如,如果连接器发生故障,它应该尝试在单独的线程中重新连接,但是应用程序的其余部分应该能够运行,或者应该忽略错误,并且应该初始化其余的流程。
I tried to add reconnect strategy, but it didn't work.
我试图添加重新连接策略,但它没有用。
<imaps:connector name="imaps" mailboxFolder="${email.ingestion.mailboxFolder}" deleteReadMessages="${email.ingestion.deleteReadMessages}">
<reconnect frequency="3000" blocking="false" />
<imaps:tls-client path="*" storePassword="*"/>
<imaps:tls-trust-store path="*" storePassword="*"/>
</imaps:connector>
Thanks in advance....
提前致谢....
1 个解决方案
#1
A non blocking reconnection strategy is the way to go. If it doesn't work, please report an issue.
非阻塞重新连接策略是可行的方法。如果不起作用,请报告问题。
#1
A non blocking reconnection strategy is the way to go. If it doesn't work, please report an issue.
非阻塞重新连接策略是可行的方法。如果不起作用,请报告问题。