How do I leverage existing KafkaTemplate from Producer config in RetryTopicConfiguration? #2637
-
Team, With reference to https://docs.spring.io/spring-kafka/reference/html/#using-retrytopicconfiguration-beans I would like to know how I can leverage existing KafkaTemplate (getSdKafkaTemplate) configured in my KafkaProducer config? I have the following in MyRetryConfig.java that is annotated with @configuration
In KafkaPublisherConfiguration.java that is also annotated with @configuration has the following
I want to make sure that the retry uses the configured producer. So my understanding is in lieu of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Use a qualifier:
|
Beta Was this translation helpful? Give feedback.
-
Lovely thanks @garyrussell and @gpando . Will try the suggestions and marked as answered. |
Beta Was this translation helpful? Give feedback.
Use a qualifier: