You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Johan Stenberg (JIRA)" <ji...@apache.org> on 2018/06/04 19:04:00 UTC
[jira] [Updated] (QPIDJMS-388) Unhandled RuntimeException in
MessageListener#onMessage does not increment AMQP delivery count in
AUTO_ACK
[ https://issues.apache.org/jira/browse/QPIDJMS-388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Johan Stenberg updated QPIDJMS-388:
-----------------------------------
Attachment: QpidJms388_RuntimeExectionInOnMessageTest.java
> Unhandled RuntimeException in MessageListener#onMessage does not increment AMQP delivery count in AUTO_ACK
> ----------------------------------------------------------------------------------------------------------
>
> Key: QPIDJMS-388
> URL: https://issues.apache.org/jira/browse/QPIDJMS-388
> Project: Qpid JMS
> Issue Type: Bug
> Components: qpid-jms-client
> Affects Versions: 0.32.0
> Reporter: Johan Stenberg
> Priority: Major
> Attachments: QpidJms388_RuntimeExectionInOnMessageTest.java
>
>
> The JMS spec states: "The result of a listener throwing a RuntimeException depends on the session's acknowledgment mode. AUTO_ACKNOWLEDGE or DUPS_OK_ACKNOWLEDGE: the message will be immediately redelivered. ... The 'JMSRedelivered' message header field will be set, and the 'JMSXDeliveryCount' message property incremented, for a message redelivered under these circumstances."
> Currently qpid-jms however is not incrementing the deliveryCount or setting the redelivered message header to true when a listener throws a runtimeexception while in AUTO_ACK.
> This results in "jms.redeliveryPolicy.maxRedeliveries" being ignored and endless redelivery attempts.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org