During the shutdown of a Spring AMQP listener container, all retrieved messages are allowed to finish processing before the container stops.
I would like the same behavior for the JMS listener containers. As of now, we cannot control whether a received message should be fully processed before the container shuts down. This means that messages received during shutdown will not be acknowledged when using AUTO_ACKNOWLEDGE, and they will therefore be redelivered or moved to the backout/dead-letter queue.
Current behavior;
|
logger.warn("Rejecting received message because of the listener container " + |
During the shutdown of a Spring AMQP listener container, all retrieved messages are allowed to finish processing before the container stops.
I would like the same behavior for the JMS listener containers. As of now, we cannot control whether a received message should be fully processed before the container shuts down. This means that messages received during shutdown will not be acknowledged when using
AUTO_ACKNOWLEDGE, and they will therefore be redelivered or moved to the backout/dead-letter queue.Current behavior;
spring-framework/spring-jms/src/main/java/org/springframework/jms/listener/AbstractMessageListenerContainer.java
Line 725 in 3b90311