Reputation: 23
How can i add max attempts for connection retry for message consumer using jmsOutboundGateway?I am using ibm mq. below is the configuration
<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}"/>
Upvotes: 1
Views: 396
Reputation: 121550
If there is no such an option on that keyManagementConnectionFactory
, then you can try to use a <request-handler-advice-chain>
with the <retry-advice>
: https://docs.spring.io/spring-integration/docs/current/reference/html/messaging-endpoints.html#message-handler-advice-chain
Upvotes: 1