activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shahzad Bhatti <>
Subject How do I specify max retries for delivery and DLQ policies for dynamic queues
Date Mon, 18 May 2009 22:17:24 GMT

I am using ActiveMQ 5.2 with following configuration:
  <broker brokerName="US_Integ_RSP" persistent="true" useJmx="true"
        <!-- Destination specific policies using destination names or
wildcards -->
                    <policyEntry queue=">" memoryLimit="512mb">
                        <individualDeadLetterStrategy queuePrefix="DLQ." />
                    <policyEntry topic=">" memoryLimit="128mb">
        <!-- Use the following to configure how ActiveMQ is exposed in JMX
            <managementContext createConnector="true"/>
        <journaledJDBC journalLogFiles="5" dataDirectory="./var/" />

        <transportConnector name="openwire" uri="tcp://localhost:61616"

      <networkConnector name="default-us-integ-rsp"
uri="multicast://default" dynamicOnly="true" conduitSubscriptions="false"
decreaseNetworkConsumerPriority="false" />

I am using Spring 2.5 along with ActiveMQ to register listeners, e.g.
   <bean id="springJmsContainer"
init-method="start" destroy-method="stop">
        <property name="connectionFactory"
        <property name="destination" ref="springEventBus"/>
        <property name="messageListener" ref="springJmsListener"/>
        <property name="pubSubNoLocal" value="true"/>
        <property name="sessionTransacted" value="true"/>

All of my queues are created dynamically so my question is how do I specify
maximum retries for delivery in case transaction fails and automatically
move those messages to DLQ.
View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message