activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sheetal Kulkarni <Sheetal.Kulka...@sungard.com>
Subject ActiveMQ DLQ Handling
Date Fri, 11 May 2012 05:44:02 GMT
hi,

i have configured DLQ policy for individual queue in activemq.xml as below:
  <policyEntry queue=">" >
      <deadLetterStrategy>
            
        <individualDeadLetterStrategy
          queuePrefix="DLQ." useQueueForQueueMessages="true" />
       </deadLetterStrategy>
</policyEntry>

But still when i try to have some failing messages the messages are sent to
"ActiveMQ.DLQ" by default and not to the individual dead letter queues. I
have done configuration for redelivery policy in camel in activemq
connection factory as below?:

	<bean id="redeliveryPolicy" class="org.apache.activemq.RedeliveryPolicy">
		<property name="maximumRedeliveries">
			<value>2</value>
		</property>
		<property name="useExponentialBackOff">
			<value>true</value>
		</property>
		<property name="initialRedeliveryDelay">
			<value>10</value>
		</property>
	</bean>


	<bean id="jmsConnectionFactory"
class="org.apache.activemq.ActiveMQConnectionFactory">
		<property name="brokerURL" value="tcp://localhost:61616" />
        <property name="redeliveryPolicy" ref="redeliveryPolicy"/>		
	</bean>

I am using transactions and i see message is redelivered , but not to the
expected queue.

Please suggest
Where am i going wrong please tell me.


--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-DLQ-Handling-tp4625527.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message