Skip to content

How to attach to multiple Kafka clusters #1980

Answered by garyrussell
corstad asked this question in Q&A
Discussion options

You must be logged in to vote

Name one of your factories kafkaListenerContainerFactory - Boot's conditional declaration looks like this:

	@Bean
	@ConditionalOnMissingBean(name = "kafkaListenerContainerFactory")
	ConcurrentKafkaListenerContainerFactory<?, ?> kafkaListenerContainerFactory(

Hence, it will try to create this factory only if there is not already a bean with that name.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by corstad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants