[jboss-jira] [JBoss JIRA] Commented: (JGRP-875) XMP parsing: variable substitution should be the same as in JBoss

Bela Ban (JIRA) jira-events at lists.jboss.org
Wed Dec 10 11:52:36 EST 2008


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

Bela Ban commented on JGRP-875:
-------------------------------

This entails a change in behavior:

- When a variable is used in the XML config, e.g. value="${var:1000}", and 'var' is defined as a system property (900 for example), it will substitute the value defined in the config, so the value used will be 900 here.

- We'll only overwrite values that have a variable in the config, which can be replaced. In the following case:
  value="1000", even if -Dvar=900 is defined, we do *not* overwrite 1000 !

- So the biggest change is this: using -Djgroups.bind_addr=1.2.3.4 does *not* necessarily overwrite bind_addr in the config file ! 
 NO:  bind_addr="5.5.5.5". The bind address will be 5.5.5.5 !
 YES: bind_addr="${jgroups.bind_addr:5.5.5.5}": the bind address will be 1.2.3.4 !

> XMP parsing: variable substitution should be the same as in JBoss
> -----------------------------------------------------------------
>
>                 Key: JGRP-875
>                 URL: https://jira.jboss.org/jira/browse/JGRP-875
>             Project: JGroups
>          Issue Type: Feature Request
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>             Fix For: 2.7
>
>
> In JBoss' XML, we can say
> value="${var1,var2,var3:8900}", which means that the value is that of system property var1 if set, else that of var2 if set, else that of var3 if set, or else 8900.
> JGroups doesn't support a list of variables, it supports only one variable. Change this to make it parse the format supported by JBoss, too.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list