[
https://issues.jboss.org/browse/AS7-4657?page=com.atlassian.jira.plugin.s...
]
Brian Stansberry edited comment on AS7-4657 at 11/16/12 10:11 AM:
------------------------------------------------------------------
You can use the root-resource's "resolve-expression" operation to resolve
any expression:
cd /
:resolve-expression(expression=${jboss.default.multicast.address:230.0.0.4})
To resolve on a particular host or server though, you'd need to move to the root
resource for that host/server.
was (Author: brian.stansberry):
You can use the root-resource's "resolve-expression" operation to
resolve any expression:
cd /
:resolve-expression(expression=${jboss.default.multicast.address:230.0.0.4})
Add resolve-expressions param to operation read-resource
--------------------------------------------------------
Key: AS7-4657
URL:
https://issues.jboss.org/browse/AS7-4657
Project: Application Server 7
Issue Type: Feature Request
Components: Domain Management
Reporter: Michael Voegele
Labels: expression, read-resource
When reading a resource remotely, it would be nice to have the possibility to have
expressions resolved.
Following does of course not work, as the code runs in a separate jvm.
{code:java}
private void readRecursive(ModelNode modelNode, String modelNodeName, Map<String,
Object> map) {
switch (modelNode.getType()) {
...
case EXPRESSION:
// this would be great but won't work as it runs in a different jvm
// ModelNode expression = modelNode.resolve();
// readRecursive(expression, modelNodeName, map);
map.put(modelNodeName, modelNode.asString());
break;
...
}
{code}
Therefore a param resolve-expressions for the read-resource operation would be good.
--
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