Spring AMQP StatefulRetryOperationsInterceptor not used
I am trying configure spring amqp to only retry a message a defined amount of times. Currently a message that fails e.g. because of a DataIntegrityViolationException is redelivered indefinitely. According to the documentation here I came up with the following configuration @Bean public StatefulRetryOperationsInterceptor statefulRetryOperationsInterceptor() { return RetryInterceptorBuilder.stateful() .backOffOptions(1000, 2.0, 10000) // initialInterval, multiplier, maxInterval .maxAttempts(3) .messageKeyGenerator(message -> UUID.randomUUID().toString()) .build(); } This does not seem to be