2 Replies Latest reply on Aug 7, 2009 6:31 AM by Dejan Mratinkovic

    Max Delivery Attempts ignored on Jboss 5.1 queue?

    Dejan Mratinkovic Newbie

      I have posted this message already on JBoss Messaging forum, but they suggested to change forum. Guess EJB3 people might help. They suggested this should work fine and that this is MDB issue.

      I have very simple queue. Both producer an consumers are EJB3 (Stateless session and MDB)

      I have set attribute:

      <attribute name="MaxDeliveryAttempts">13</attribute>


      in *-service.xml file. Value is visible form JBoss AS Administration console, configuration view of a queue (Max Delivery Attempts).

      But, when message delivering files (Ejb3 MDB), after only 5 (not 13 as expected), I got message:

      WARN [AbstractDLQHandler] Message redelivered=6 max=5 sending it to the dlq delegator->JBossMessage[20471539334316035]:PERSISTENT, deliveryId=25


      Afterward, message is moved to DLQ as expected.

      It is not even 10, which is expected default value.
      Some other attributes, like

      <attribute name="RedeliveryDelay">17000</attribute>


      Works as expected (delay between two attempts to deliver message is 17 seconds).

      Is this me doing something wrong, or JBoss is ignoring this parameter?

      How to set it up?