SimpleMessageListenerContainer is continuously consuming after TransactionSystemException
问题 I don't want the SimpleMessageListenerContainer to continuously consume the messages when my Transaction marked as rollback. I didn't add listener-container in my configuration file and trying to rethrow the AmqpRejectAndDontRequeueException . It is not working. Here is my codebase: @Transactional public class MySecondService { @Resource private MySecondRepository mySecondRepository; @Transactional(propagation = Propagation.REQUIRED) @ServiceActivator(inputChannel = "my-first-servie-output