Skip to content

Improve the graceful shutdown handling within AbstractMessageListenerContainer #35928

@NicklasWallgren

Description

@NicklasWallgren

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 " +

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)status: invalidAn issue that we don't feel is valid

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions