Broker plugin to allow automatic discarding of the items being sent to the dead
letter queue
--------------------------------------------------------------------------------------------
Key: AMQ-1892
URL: https://issues.apache.org/activemq/browse/AMQ-1892
Project: ActiveMQ
Issue Type: New Feature
Components: Broker
Affects Versions: 5.1.0, 5.0.0
Reporter: Filip Hanik
Fix For: 5.2.0
Attachments: discarding-dlq-plugin.zip
A very simple, yet very useful plugin to the broker. This allows one to
configure queues and topics, all or matched based on regular expressions, to
drop messages being sent to the DLQ
extremely useful when one uses constant pending message limit strategy or the
other eviction rules, but don't want to incur the overhead of yet another
consumer to clear the DLQ
Configuration looks like
<plugins>
<bean
xmlns="http://www.springframework.org/schema/beans"
id="discardingDlqBroker"
class="org.apache.activemq.plugin.DiscardingDLQBroker">
<property name="dropAll" value="true"/>
<property name="dropTemporaryTopics" value="true"/>
<property name="dropTemporaryQueues" value="true"/>
<!--drops by destination name, using java regular expressions
http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html
delimited by spaces, so destination names cannot contain spaces
<property name="dropOnly" value="topic_1 queue_1"/>
-->
<!--how frequently do we output how many messages we have dropped -
use 0 for disable-->
<property name="reportInterval" value="1000"/>
</bean>
</plugins>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.