As a Operation guy (not a developer) and based on http://activemq.apache.org/message-redelivery-and-dlq-handling.html I have tried to set expiry time on the ActiveMQ.DLQ that is integrated into JBoss Fuse 6.2 to ensure that KahaDB's folder wont grow out of disk space but below settings seems do nothing on the queue messages but to copy them over to ActiveMQ.Advisory.Producer.Queue.ActiveMQ.DLQ twice.
...
<policyEntry queue=">" producerFlowControl="false">
<deadLetterStrategy>
<sharedDeadLetterStrategy expiration="300000"/>
</deadLetterStrategy>
</policyEntry>
...
To test this just sent messages into the ActiveMQ.DLQ queue using JBOSS FUSE MANAGEMENT CONSOLE and noticed a new queue is generated having double the number of messages that I had sent Enqueued:
ActiveMQ.Advisory.Producer.Queue.ActiveMQ.DLQ 0 0 0 8 0 0
ActiveMQ.DLQ 4 0 0 4 0 0
Any thought on this?