You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "john uiterwyk (Jira)" <ji...@apache.org> on 2019/12/19 06:35:00 UTC

[jira] [Created] (NIFI-6959) JMS Durable subscription does not support filters

john uiterwyk created NIFI-6959:
-----------------------------------

             Summary: JMS Durable subscription does not support filters
                 Key: NIFI-6959
                 URL: https://issues.apache.org/jira/browse/NIFI-6959
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 1.9.2, 1.9.1, 1.10.0, 1.8.0, 1.7.0, 1.6.0
         Environment: All
            Reporter: john uiterwyk


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)