[jboss-jira] [JBoss JIRA] (AS7-4437) Pls add a dmr handler to add and remove a single environment variable
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Fri Apr 13 11:24:48 EDT 2012
[ https://issues.jboss.org/browse/AS7-4437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated AS7-4437:
----------------------------------
Fix Version/s: 7.2.0.Alpha1
Very likely the name won't be add(remove)-environment-variable.
In 7.2 we will add a standard naming convention for ops that mutate a list or map attribute, with the conventional name composed of
1) verb (e.g. add, remove)
2) name of attribute being mutated
3) probably the string "list" or "map"
Existing ops that don't follow that convention will be retained, with the new variant added. But I don't think we'll add new ops whose name doesn't follow the convention.
> Pls add a dmr handler to add and remove a single environment variable
> ---------------------------------------------------------------------
>
> Key: AS7-4437
> URL: https://issues.jboss.org/browse/AS7-4437
> Project: Application Server 7
> Issue Type: Feature Request
> Components: Domain Management
> Affects Versions: 7.1.1.Final
> Reporter: Michael Voegele
> Assignee: Brian Stansberry
> Labels: dmr, environment-variables
> Fix For: 7.2.0.Alpha1
>
>
> For adding a single jvm-option, operations exist for convenience:
> add-jvm-option
> remove-jvm-option
> The same would be good for environment variables:
> add-environment-variable
> remove-environment-variable
> At the moment, the same can only be achieved by writing the whole attribute environment-variables, which does not allow to add a *single* variable (if some already exist, the existing ones have to be included when writing the attribute):
> {code:xml}
> {
> "operation" => "write-attribute",
> "address" => [
> ("host" => "master"),
> ("server-config" => "server-1"),
> ("jvm" => "default")
> ],
> "name" => "environment-variables",
> "value" => [
> {"foo1" => "bar1"},
> {"foo2" => "bar2"}
> ]
> }
> {code}
> Operations write-attribute and undefine-attribute have to be used.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list