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

reportInterval property ignored by DiscardingDLQBrokerPlugin

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.4.2
    • 5.5.0
    • Broker
    • None

    Description

      I have a project where I'm trying to use a BrokerService with the
      DiscardingDLQBrokerPlugin in code, and I don't want/need the log messages
      created for the number of discarded messages.

      Eg:

      broker_serv = new BrokerService();
      plugins[] = new BrokerPlugin[1];
      ddlq_plugin = new DiscardingDLQBrokerPlugin();
      ...
      ddlq_plugin.setDropAll(true);
      ddlq_plugin.setReportInterval(0);
      plugins[0] = ddlq_plugin;

      broker_serv.setPlugins(plugins);
      broker_serv.start();

      Yet, in the DiscardingDLQBrokerPlugin the installPlugin() method doesn't
      pass its reportInterval to the DiscardingDLQBroker it creates. So the
      DiscardingDLQBroker uses its default reportingInterval of 1000, and no
      matter what I do with ddlq_plugin.setReportInterval the reporting
      interval is always 1000.

      see http://activemq.2283324.n4.nabble.com/Bug-with-DiscardingDLQBrokerPlugin-reportInterval-Not-Used-td3174509.html

      Attachments

        Activity

          People

            gtully Gary Tully
            gtully Gary Tully
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: