Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-6959

JMS Durable subscription does not support filters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.10.0, 1.9.1, 1.9.2
    • None
    • Extensions
    • None
    • All

    Description

      The ConsumeJMS processor does not support passing filters when creating a topic subscription.

      This can be seen in line 72 of JMSConsumer.java, where null is passed for the filter when calling :

      return session.createDurableConsumer((Topic) destination, subscriberName, null, JMSConsumer.this.jmsTemplate.isPubSubDomain());
         

      Some JMS implementations require a filter when creating a durable subscription for performance reasons. 

      This can be resolved by adding a property 'filter' of type string to the ConsumeJMS processor, and then passing that filter string to the JMSConsumer  method createMessageConsumer and then passing it to the createDurableConsumer method.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              johnuiterwyk john uiterwyk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: