GH-152: Inject nullChannel for confirm acks
Fixes https://github.com/spring-cloud/spring-cloud-stream-binder-rabbit/issues/152 Reduce log noise since we only express interest in nacks.
This commit is contained in:
committed by
Artem Bilan
parent
a8bf0e8a09
commit
5a95735615
@@ -285,6 +285,8 @@ public class RabbitMessageChannelBinder
|
||||
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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user