[jboss-jira] [JBoss JIRA] (JGRP-2166) Attributes should also be set via environment variables

Bela Ban (JIRA) issues at jboss.org
Tue Apr 18 07:33:00 EDT 2017


    [ https://issues.jboss.org/browse/JGRP-2166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13394426#comment-13394426 ] 

Bela Ban commented on JGRP-2166:
--------------------------------

Here's how {{mcast_port=$\{my.mcast_port,MCAST_PORT:7500\}}} will get substituted:

* If neither {{my.mcast_port}} system property nor {{MCAST_PORT}} environment variable are set, {{mcast_port}} will be 7500
* If system property {{my.mcast_port}} is set to P, {{mcast_port}} will be P
* If system property {{my.mcast_port}} is not set, but env var {{MCAST_PORT}} is set to M, {{mcast_port}} will be M

> Attributes should also be set via environment variables
> -------------------------------------------------------
>
>                 Key: JGRP-2166
>                 URL: https://issues.jboss.org/browse/JGRP-2166
>             Project: JGroups
>          Issue Type: Feature Request
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>            Priority: Minor
>             Fix For: 4.0.2
>
>
> Currently, an attribute such as {{mcast_port=$\{my.mcast_port:7500\}}} is set to 7500 by default. If there is a system property {{my.mcast_port}}, it will override the port.
> We should also look for environment values; the precedence would be
> * If there is a system property, use it
> * If not, if there is an environment variable, use it // this is new
> * Else use the configured value (e.g. 7500)



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list