Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-792

When an AMQP client receives some messages from a queue, all JMSRedelivered headers of the remained messages are changed to true.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.2
    • JBoss A-MQ 6.1
    • amqp
    • None
    • Hide

      Preparation:
      (a) Maven Install the attached JMS program.
      (b) Edit the activemq.xml to add AMQP transportConnector.

         <transportConnector name="amqp" uri="amqp://0.0.0.0:5672?transport.transformer=jms"/>
      

      (c) Comment out the authentication plugin to allow this program to access the broker.

         <!-- <jaasAuthenticationPlugin configuration="karaf" /> -->
      

      1 Add 100 messages to SampleQueue.

        $ mvn -P producer
      

      2. You can see the all messages in the queue has JMSRedelivered=false with A-MQ management console.
      3. Receive 10 messages from the queue.

        $ mvn -P consume10
      

      4. You can see the all 90 messages in the queue has JMSRedelivered=true with A-MQ management console.
      5. Receive more 10 messages from the queue. You will see some empty(corruped) messages.

        $ mvn -P consume10
      
      Show
      Preparation: (a) Maven Install the attached JMS program. (b) Edit the activemq.xml to add AMQP transportConnector. <transportConnector name= "amqp" uri= "amqp://0.0.0.0:5672?transport.transformer=jms" /> (c) Comment out the authentication plugin to allow this program to access the broker. <!-- <jaasAuthenticationPlugin configuration= "karaf" /> --> 1 Add 100 messages to SampleQueue. $ mvn -P producer 2. You can see the all messages in the queue has JMSRedelivered=false with A-MQ management console. 3. Receive 10 messages from the queue. $ mvn -P consume10 4. You can see the all 90 messages in the queue has JMSRedelivered=true with A-MQ management console. 5. Receive more 10 messages from the queue. You will see some empty(corruped) messages. $ mvn -P consume10

      When an AMQP client receives some messages from a queue, all JMSRedelivered headers of the remained messages are changed to true.
      This behavior hits a bug AMQ-5278, and leads to corrupted messages.

              dejanbosanac Dejan Bosanac
              rhn-support-tkonishi Takayuki Konishi
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: