[ 
https://issues.apache.org/jira/browse/NIFI-5825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard resolved NIFI-5825.
----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> ConsumeJMS - Not using Clientid / durable does not works
> --------------------------------------------------------
>
>                 Key: NIFI-5825
>                 URL: https://issues.apache.org/jira/browse/NIFI-5825
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.8.0
>            Reporter: Mermillod
>            Priority: Major
>         Attachments: amq_consume.JPG, nifi_consumejms.JPG
>
>
> I cannot make the ConsumeJMS 1.8.0 processor work as a "durable consumer". I 
> set the client id, but it mis-used. I'm using ActiveMQ (AmazonMQ).
>  
> I set (check pictures for full details) : 
>  * "sub" in Connection Client Id
>  * "true" in durable subscription
> Result in ActiveMQ :
>  * NIFI creates in "Durable Topic Subscribers" "sub-<increment>" (like 
> "sub-4" instead of "sub").
>  
>  
> I think the problem may be in AbstractJMSProcessor.java/buildTargetResource 
> and we should have something like that : 
> {code:java}
> String clientId = 
> context.getProperty(CLIENT_ID).evaluateAttributeExpressions().getValue();
> if (clientId != null) {
> if (!durable){ 
> // we have to generate a unique, dynamique, temp, client id
> clientId = clientId + "-" + clientIdCounter.getAndIncrement();
> }
> cachingFactory.setClientId(clientId);
> }
> {code}
>  
>  But dunno how to get this "durable" prop in the Abstract during the 
> "OnTrigger" stuff...
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to