You would just add a policyEntry for your topics to what you have. Although it doesn't show mixing queue and topic policyEntry elements, http://activemq.apache.org/per-destination-policies.html shows the idea.
Tim On Wed, Mar 27, 2019, 3:19 AM W.Y <wyan...@gmail.com> wrote: > that for the reply, i found the reson. then modified the activemq.xml like > below , it works > > then question is , the policyEntries i used is only for queue. > destinationPolicy is only for queue. > is there a example configuration of destinationPolicy for both of topic > and > queue ? > > <broker xmlns="http://activemq.apache.org/schema/core" > brokerName="localhost" dataDirectory="${activemq.data}" > > > <destinationPolicy> > <policyMap> > <policyEntries> > > <policyEntry queue=">"> > <deadLetterStrategy> > > <individualDeadLetterStrategy > queuePrefix="DLQ." > useQueueForQueueMessages="true"/> > </deadLetterStrategy> > </policyEntry> > </policyEntries> > </policyMap> > </destinationPolicy> > > > > -- > Sent from: > http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html >