Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-1892

Broker plugin to allow automatic discarding of the items being sent to the dead letter queue

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0.0, 5.1.0
    • 5.2.0
    • Broker
    • None

    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>

      Attachments

        Activity

          People

            rajdavies Robert Davies
            fhanik Filip Hanik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: