DLQ Not Working In ActiveMQ After Upgrade From 4 To 5

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

DLQ Not Working In ActiveMQ After Upgrade From 4 To 5

urciolo
I recently switched from ActiveMQ 4 to 5.  I have been having issues getting messages to go to a DLQ after rollbacks.

out2.txt

Attached is a log showing a message consumer doing a rollback several times.  The message is rolled back and redelivered at first.  However, after a few times the message appears to rollback, but is not redelivered, nor do I see it in a DLQ.

Can you provide assistance on tracking down what is happening?

I have the following in my ActiveMQ xml file:

<amq:destinationPolicy>


                        <amq:policyMap>
                                <amq:policyEntries>
                                    <amq:policyEntry queue="*">
                                        <amq:deadLetterStrategy>
                            <amq:individualDeadLetterStrategy queuePrefix="DLQ." useQueueForQueueMessages="true" />
                        </amq:deadLetterStrategy>
                                    </amq:policyEntry>                               
                               
                                        <amq:policyEntry queue="lanternRequestQueue">
                                                <property name="dispatchPolicy">
                                                        <ref
                                                                bean="comparedSubscriptionRoundRobinDispatchPolicy" />
                                                </property>
                                        </amq:policyEntry>
                                </amq:policyEntries>
                        </amq:policyMap>
                </amq:destinationPolicy>