activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spam trap <>
Subject Message redelivery to multiple consumers
Date Wed, 06 Mar 2013 10:54:25 GMT
We need to allow message redelivery to multiple consumers of the same
queue.  The consumers stop and restart/recover the session when they
need.  Unacknowledged messages need to be consumed by any consumer. We
have set the broker up according to the instructions in the page

Here is an excerpt from the actual config file:

          <redeliveryPlugin fallbackToDeadLetter="false"
                          <!-- a destination specific policy -->
                          <redeliveryPolicy queue="Queue"
maximumRedeliveries="3" redeliveryDelay="10000" />
                      <!-- the fallback policy for all other
destinations -->
                          <redeliveryPolicy maximumRedeliveries="-1"
initialRedeliveryDelay="5000" redeliveryDelay="10000" />

We can see it working, in that the messages now are delivered to two
consumers currently running but the messages always end up on the Dead
Letter Queue after a few retries.  What we want is to ensure that the
messages stay on the queue forever until they are consumed and
acknowledged.  Can anyone tell me how to do this, thanks?

View raw message