2

I'm wondering how to use the spring-kafka annotation @RetryableTopic within an integration flow.

Is there any way to apply it onto a consumer introduced by Kafka.messageDrivenChannelAdapter() ?

Artem Bilan
  • 113,505
  • 11
  • 91
  • 118
Bjoern
  • 21
  • 1

1 Answers1

0

You cannot, directly.

However, you can invoke a spring integration flow using a Messaging Gateway from a @KafkaListener (that is effectively what the message driven channel adapter does).

https://docs.spring.io/spring-integration/docs/current/reference/html/messaging-endpoints.html#gateway

Gary Russell
  • 166,535
  • 14
  • 146
  • 179