Your producer has to set that option on each message; it can't be set in
the broker config.  See
http://activemq.apache.org/how-do-i-set-the-message-expiration.html if
you're producing messages directly, or if you're using Camel use the
timeToLive URI option.

What you've done is to configure how often the broker should look for
expired messages, rather than setting when a given message should actually
expire.

Tim
On Mar 25, 2015 3:24 AM, "mayank_inno" <mayankag...@gmail.com> wrote:

> Hi Tim,
>
> Thanks for your feedback , can you share the configuration regarding
> message
> expiration time and automatically moved to the DLQ. I used activeMQ 5.9.1
> version . But not able to get desire result. with following configuration.
>
> <destinationPolicy>
>    <policyMap>
>      <policyEntries>
>
>        <policyEntry queue=">" expireMessagesPeriod ="10000">
>
>          <deadLetterStrategy>
>          <individualDeadLetterStrategy
>               queuePrefix="DLQ." useQueueForQueueMessages="true"
> processNonPersistent="true"/>
>          </deadLetterStrategy>
>        </policyEntry>
>      </policyEntries>
>    </policyMap>
>   </destinationPolicy>
>
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/move-Stuck-messages-from-one-queue-to-another-queue-tp4693647p4693782.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to