title: Spring JMS Activemq - set dead letter queue-name (DLQ)
body: <p>We have 3 different projects that are running on the same ACTIVEMQ broker.
  Currently there is a single "DLQ" queue, we would like to set the dlq for each web application like so:</p>
  
  <pre><code>dlq_webapp1
  dlq_webapp2
  dlq_webapp3
  </code></pre>
  
  <p>This way we will have more control on the retry flow. how can we configure it to be like so? here are some of our messaging beans:</p>
  
  <pre><code>    &lt;bean id="redeliveryConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"&gt;
      &lt;property name="brokerURL" value="${activemq_url}" /&gt;
      &lt;property name="redeliveryPolicy" ref="redeliveryPolicy" /&gt;
      &lt;property name="nonBlockingRedelivery" value="true" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="redeliveryCachingConnectionFactory"
      class="org.springframework.jms.connection.CachingConnectionFactory"
      p:targetConnectionFactory-ref="redeliveryConnectionFactory"
      p:sessionCacheSize="10" /&gt;
  
  &lt;!-- Redelivery: retry after 3sec, 6sec,9sec,12sec,15sec finally put in 
      DLQ --&gt;
  
  &lt;bean id="redeliveryPolicy" class="org.apache.activemq.RedeliveryPolicy"&gt;
      &lt;property name="queue" value="*" /&gt;
      &lt;property name="initialRedeliveryDelay" value="0" /&gt;
      &lt;property name="redeliveryDelay" value="3000" /&gt;
      &lt;property name="maximumRedeliveryDelay" value="3600000" /&gt;
      &lt;property name="maximumRedeliveries" value="5" /&gt;
      &lt;property name="useExponentialBackOff" value="true" /&gt;
      &lt;property name="backOffMultiplier" value="1" /&gt;
  &lt;/bean&gt;
  
  
  &lt;!-- A JmsTemplate instance that uses the cached connection and destination --&gt;
  &lt;bean id="redeliveryJmsTemplate" class="org.springframework.jms.core.JmsTemplate"&gt;
      &lt;property name="connectionFactory" ref="redeliveryCachingConnectionFactory" /&gt;
      &lt;property name="messageConverter" ref="eventConverter" /&gt;
      &lt;property name="sessionTransacted" value="true" /&gt;
  &lt;/bean&gt;
  </code></pre>