[ 
https://issues.apache.org/jira/browse/NIFI-14473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17946696#comment-17946696
 ] 

Andreas Koch commented on NIFI-14473:
-------------------------------------

Thanks for the answer.

That exactly what im trying to do. I created a Parameter Provider and a 
parameter context. But the parameter can not be referenced from Consume JMS. IT 
is my understanding that therefore the class _AbstractJMSProcessor_ must be 
changed.
{code:java}
 static final PropertyDescriptor PASSWORD = new PropertyDescriptor.Builder()
            .name("Password")
            .description("Password used for authentication and authorization. 
AAAAA")
            .required(false)
            .expressionLanguageSupported(ExpressionLanguageScope.ENVIRONMENT)
            .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
            .sensitive(true)
            .build(); {code}
Locally I patched it and added the support for environment parameters, or is 
there another way to do this.

> Possibility to use environment parameters as password for ConsumeJMS
> --------------------------------------------------------------------
>
>                 Key: NIFI-14473
>                 URL: https://issues.apache.org/jira/browse/NIFI-14473
>             Project: Apache NiFi
>          Issue Type: Wish
>    Affects Versions: 2.2.0
>            Reporter: Andreas Koch
>            Priority: Major
>
> We deploy on Flow to 3 different environments. For most passwords we can use 
> parameters, but not for ConsumeJMS. It would nice to have that possibility 
> there too. But expression language scope is not supported there.



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

Reply via email to