[英]Getting exception on IBM Websphere MQ JMS connection with spring boot
[英]Camel JMS : connection refresh not working (IBM MQ)
我正在使用以下端點:
jms:queue:MY_JMS_QUEUE?transacted=true&recoveryInterval=10000&testConnectionOnStartup=true
一切正常,但只要 MQ 連接丟失(由於 IBM MQ 服務器重新啟動),連接刷新就不起作用。
在我的日志中,我有:
ERROR [c.c.j.DefaultJmsMessageListenerContainer] []] Could not refresh JMS Connection for destination 'MY_JMS_QUEUE' - retrying using FixedBackOff{interval=10000, currentAttempts=0, maxAttempts=unlimited}. Cause: JMSWMQ0018: Failed to connect to queue manager 'xxx' with connection mode 'Client' ......('MQRC_Q_MGR_NOT_AVAILABLE')
沒有別的了,我期望在 MQ 回來之前,多次出現相同的錯誤消息,currentAttempts=1 然后 2...。
我檢查了文檔,但我沒有看到任何其他內容。 我的配置:
Camel version : 3.11.3
Java: 11.0.8
Spring boot : 2.5.2
由於您的連接模式是“客戶端”,您可以嘗試使用 MQ 自動 JMS 客戶端重新連接功能。 您需要在連接工廠定義中配置“ClientReconnectOptions”。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.