-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Unable to create multiple listeners using same class with KafkaListener annotation at class level #2451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for reporting. Curious: How did you create an issue with no labels? The New Issue page does not have an option for that. |
garyrussell
added a commit
to garyrussell/spring-kafka
that referenced
this issue
Oct 20, 2022
Resolves https://github.com/spring-projects/spring-kafka/pulls Classes with class level `@KafkaListener` were incorrectly added to the `nonAnnotatedClasses` set, preventing multiple instances of the same class to be registered as listeners. **cherry-pick to 2.9.x, 2.8.x**
garyrussell
added a commit
to garyrussell/spring-kafka
that referenced
this issue
Oct 20, 2022
Resolves spring-projects#2451 Classes with class level `@KafkaListener` were incorrectly added to the `nonAnnotatedClasses` set, preventing multiple instances of the same class to be registered as listeners. **cherry-pick to 2.9.x, 2.8.x**
artembilan
pushed a commit
that referenced
this issue
Oct 21, 2022
Resolves #2451 Classes with class level `@KafkaListener` were incorrectly added to the `nonAnnotatedClasses` set, preventing multiple instances of the same class to be registered as listeners. **cherry-pick to 2.9.x, 2.8.x** * Fix CheckStyle.
artembilan
pushed a commit
that referenced
this issue
Oct 21, 2022
Resolves #2451 Classes with class level `@KafkaListener` were incorrectly added to the `nonAnnotatedClasses` set, preventing multiple instances of the same class to be registered as listeners. **cherry-pick to 2.9.x, 2.8.x** * Fix CheckStyle.
artembilan
pushed a commit
that referenced
this issue
Oct 21, 2022
Resolves #2451 Classes with class level `@KafkaListener` were incorrectly added to the `nonAnnotatedClasses` set, preventing multiple instances of the same class to be registered as listeners. **cherry-pick to 2.9.x, 2.8.x** * Fix CheckStyle.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is issue in this line, we have to exclude the current bean if has no annotation in methods or in class level, should be something like :
spring-kafka/spring-kafka/src/main/java/org/springframework/kafka/annotation/KafkaListenerAnnotationBeanPostProcessor.java
Line 380 in c6bbba8
The text was updated successfully, but these errors were encountered: