[jboss-jira] [JBoss JIRA] (WFLY-2613) The CLI should support property substitution for names of elements and not only for parameters

Tom Fonteyne (JIRA) jira-events at lists.jboss.org
Thu Dec 5 06:18:06 EST 2013


Tom Fonteyne created WFLY-2613:
----------------------------------

             Summary: The CLI should support property substitution for names of elements and not only for parameters
                 Key: WFLY-2613
                 URL: https://issues.jboss.org/browse/WFLY-2613
             Project: WildFly
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: CLI
    Affects Versions: 8.0.0.Beta1
            Reporter: Tom Fonteyne
            Assignee: Alexey Loubyansky


My customer is using client side substitution in the CLI
jboss-cli.xml:
<resolve-parameter-values>true</resolve-parameter-values>

This works fine for example with:

/subsystem=datasources/data-source=oracleDS:add(connection-url=jdbc:oracle:thin:@server:1521:ora1, jndi-name=java:/jboss/${name}, driver-name=oracle)

The "name" is provided in a property file at the command line for jboss-cli.sh

This request is to extend this behaviour to allow for example:

/subsystem=datasources/data-source=${datasourcename}:add(connection-url=jdbc:oracle:thin:@zen.usersys.redhat.com:1521:oracle, jndi-name=java:/jboss/${name}, driver-name=oracle)

In other words, have the actual element name be substituted as well based on a property value

We know the easy workaround is to use bash embedded cli script, so the ${datasourcename} can be provided by a bash variable but it would be nice if the CLI could do that. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list