3 Replies Latest reply on Aug 1, 2011 11:31 PM by Clebert Suconic

    hornetq MDBean redelivery count and wait time

    Peter Butkovic Newbie

      hi all,

       

      we're using JBoss 6 with hornetq 2.1.2 (the one originally provided with JBoss). We have MDBean running CMT.

       

      Where is the right place to configure redelivery of messages (wait as well as max count) on transaction rollback?

       

      is it?:

      hornetq-configuration.xml

       

      <address-settings>

            <!--default for catch all-->

            <address-setting match="#">

               <dead-letter-address>jms.queue.DLQ</dead-letter-address>

               <expiry-address>jms.queue.ExpiryQueue</expiry-address>

               <redelivery-delay>1000</redelivery-delay>

               <max-delivery-attempts>20</max-delivery-attempts>

               <max-size-bytes>10485760</max-size-bytes>      

               <message-counter-history-day-limit>10</message-counter-history-day-limit>

               <address-full-policy>BLOCK</address-full-policy>

            </address-setting>

         </address-settings>

       

      or is it?:

      hornetq-jms.xml

       

      <connection-factory

      ...

              <retry-interval>10000</retry-interval>

              <retry-interval-multiplier>1.5</retry-interval-multiplier>

              <max-retry-interval>60000</max-retry-interval>

             <reconnect-attempts>20</reconnect-attempts>

       

      Or any other place?

       

      I believed correct is hornetq-jms.xml, but when reading docs, I start to believe this is connection related only.

       

      Could anyone point me to the right place?

       

      thanks a lot.

       

      Peter B.