Description
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>