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:
committed by
Soby Chacko
parent
c990140452
commit
c1f4cf9dc6
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user