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

redeliveryCounter doesn't increase (=0) in Fuse 6.0 with patch R3 applied, when transacted consumer receives messages, but exits before commiting transaction (see ENTMQ-595)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBoss A-MQ 6.2
    • JBoss A-MQ 6.0, JBoss A-MQ 6.2
    • broker
    • None
    • Hide

      See steps to reproduce from the issue ENTMQ-595 (reproducer testcase.zip)

      Show
      See steps to reproduce from the issue ENTMQ-595 (reproducer testcase.zip)

      While verifying issue https://issues.jboss.org/browse/ENTMQ-595, the following behaivior was discovered.
      When trying to consume persistent messages, using the following code:

      public void onMessage(Message message) {
                      try {
                          if (message instanceof TextMessage) {
      			 System.out.println("Message:" + message);
                              TextMessage textMessage = (TextMessage) message;
                              System.out.println("Message:"+((TextMessage) message).getText().toString().toLowerCase());                      
                              	message.acknowledge();
                              	System.exit(1);
                              	session.close();                        
                              	session.commit();
                          }
      ...
      

      redeliveryCounter = 0 doesn't change.

      Before applying the patch redeliveryCounter was increaseing after each run of the consumer.

            gtully@redhat.com Gary Tully
            emedvede Elena Medvedeva (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: