Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Kafka error handling - v1.1.x

How to deal with error handling in spring-kafka version 1.1.x?

As I see it was introduced in version 2.0...

like image 811
Anton Arsentyev Avatar asked May 11 '17 10:05

Anton Arsentyev


1 Answers

In 1.x you can add an ErrorHandler implementation to the listener container (or container factory if you are using @KafkaListener annotations).

The 2.0 feature was added to make it easier to configure if you want a different error handler for each listener when using annotations.

like image 74
Gary Russell Avatar answered Oct 14 '22 02:10

Gary Russell