Uploaded image for project: 'Qpid JMS'
  1. Qpid JMS
  2. QPIDJMS-388

Unhandled RuntimeException in MessageListener#onMessage does not increment AMQP delivery count in AUTO_ACK

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.32.0
    • None
    • qpid-jms-client
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            johan1 Johan Stenberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: