Skip to content

Commit

Permalink
spring-cloudGH-152: Inject nullChannel for confirm acks
Browse files Browse the repository at this point in the history
Fixes spring-cloud#152

Reduce log noise since we only express interest in nacks.
  • Loading branch information
garyrussell committed May 22, 2018
1 parent a8bf0e8 commit 1d0dcd3
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -285,6 +285,8 @@ protected MessageHandler createProducerMessageHandler(final ProducerDestination
checkConnectionFactoryIsErrorCapable();
endpoint.setReturnChannel(errorChannel);
endpoint.setConfirmNackChannel(errorChannel);
endpoint.setConfirmAckChannel(getApplicationContext().getBean(
IntegrationContextUtils.NULL_CHANNEL_BEAN_NAME, MessageChannel.class));
endpoint.setConfirmCorrelationExpressionString("#root");
endpoint.setErrorMessageStrategy(new DefaultErrorMessageStrategy());
}
Expand Down

0 comments on commit 1d0dcd3

Please sign in to comment.