Spring boot 在JmsOutBoundGatway中为重新连接尝试添加固定回退
如何使用jmsOutboundGateway为消息使用者添加连接重试的最大尝试次数?我使用的是ibm mq。下面是配置Spring boot 在JmsOutBoundGatway中为重新连接尝试添加固定回退,spring-boot,spring-integration,ibm-mq,message-queue,spring-jms,Spring Boot,Spring Integration,Ibm Mq,Message Queue,Spring Jms,如何使用jmsOutboundGateway为消息使用者添加连接重试的最大尝试次数?我使用的是ibm mq。下面是配置 <int-jms:outbound-gateway request-channel="defaultSerializedRequestChannel" reply-channel="defaultDeserializedResponseChannel"
<int-jms:outbound-gateway request-channel="defaultSerializedRequestChannel" reply-channel="defaultDeserializedResponseChannel"
requires-reply="true" correlation-key="JMSCorrelationID"
request-destination-name="${fbu.request.key.management.queue}"
reply-destination-name="${fbu.response.key.management.queue}"
receive-timeout="150000"
connection-factory="keyManagementConnectionFactory">
<int-jms:reply-listener recovery-interval="${mq.connection.recovery.interval}"/>
如果
keyManagementConnectionFactory
上没有这样的选项,那么您可以尝试将
与
一起使用:我尝试过,但它不起作用。在连接工厂中没有这样的选择。不过我们可以在集装箱工厂加一个。但并没有将容器工厂设置为出站通道的选项