Skip to content

Doc: AbstractMessageListenerContainer rejecting messages on shutdown causes message loss in AUTO_ACK mode [SPR-16487] #21030

Closed
@spring-projects-issues

Description

@spring-projects-issues

hezhou opened SPR-16487 and commented

The property acceptMessagesWhileStopping in AbstractMessageListenerContainer has defult value false, which will reject messages when shutdown and causes message lossing for AUTO_ACK.
But JMS1.1 tutorial section 4.5.2 specify :
The result of a listener throwing a RuntimeException depends on the session's
acknowledgment mode.
• AUTO_ACKNOWLEDGE - the message will be immediately redelivered.
The number of times a JMS provider will redeliver the same message before
giving up is provider dependent.


Affects: 4.3.14

Attachments:

Referenced from: commits d60446a, 95f7180

Backported to: 4.3.15

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)status: backportedAn issue that has been backported to maintenance branchestype: taskA general task

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions