The .... bit is not meant to be used literally; it means "whatever you had already chosen to use here." Try replacing it with sharedDeadLetterStrategy.
However, that setting is for controlling the expiration of the message off the DLQ, not for controlling the expiration of the message off the original destination. Is that what you're trying to do, or were you really looking for this: http://activemq.apache.org/how-do-i-set-the-message-expiration.html? Tim On Fri, Sep 21, 2018, 1:46 AM Bob <malkanz...@gmail.com> wrote: > Hi sry to interrupt, is this the correct way to put expirration messages in > dlq ? Because once implement even broker is fail to run > > <broker> > > <destinationPolicy> > <policyMap> > <policyEntries> > <policyEntry queue="QueueWhereItIsOkToExpireDLQEntries"> > <deadLetterStrategy> > <.... expiration="300000"/> > </deadLetterStrategy> > </policyEntry> > </policyEntries> > </policyMap> > </destinationPolicy> > > </broker> > > > > -- > Sent from: > http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html >