I need a way to evaluate the port-offset expression in EAP 6.4. In later versions there is a resolve-expressions attribute that can be specified in the read-attribute operation. I need to be able to do this from the HTTP management interface. If you can how to do it in the CLI, then I may be able to convert it.
NOTE: I am running in standalone mode.
CLI output:
[standalone@localhost:9999 /] /socket-binding-group=standard-sockets:read-attribute(name=port-offset)
{
"outcome" => "success",
"result" => expression "${jboss.socket.binding.port-offset:0}"
}
[standalone@localhost:9999 /]
My only idea is to use the following:
[standalone@localhost:9999 /] :resolve-expression(expression="${jboss.socket.binding.port-offset:0}")
{
"outcome" => "success",
"result" => "0"
}
[standalone@localhost:9999 /]
=================================================================
Just for comparison in EAP 7.0. There are more options to specify resolve-expressions to true
[standalone@localhost:9990 /] /socket-binding-group=standard-sockets:read-attribute(name=port-offset, resolve-expressions=true)
{
"outcome" => "success",
"result" => "0"
}
[standalone@localhost:9990 /]
Unless there is an easy way to resolve the expression in EAP 6.4, it looks like I might have to try a 2 step approach.
David
IIRC this was an enhancement which was added later than EAP6.4.
And it is not likely to be backported.