Fix message listener container bean naming

With multiplex topics, topics can be an array. Sine message listener container
bean name is created by calling a toString() on the topics, when it is an array
it creates an unusual bean name. Fixing the issue by creating the bean name by
using destination string directly.
This commit is contained in:
Guillaume Lemont
2019-04-24 12:09:37 +02:00
committed by Soby Chacko
parent c990140452
commit c1f4cf9dc6

View File

@@ -535,7 +535,7 @@ public class KafkaMessageChannelBinder extends
messageListenerContainer
.setApplicationEventPublisher(getApplicationContext());
}
messageListenerContainer.setBeanName(topics + ".container");
messageListenerContainer.setBeanName(destination + ".container");
// end of these won't be needed...
if (!extendedConsumerProperties.getExtension().isAutoCommitOffset()) {
messageListenerContainer.getContainerProperties()