-
Feature Request
-
Resolution: Done
-
Major
-
None
-
None
Although some subsystem declare support for expression on certain attributes, they actually don't support it.
As en example see datasources > pool > max-pool-size.
The DMR description says it supports expressions on this attribute:
"max-pool-size" => {
"type" => INT,
"description" => "The max-pool-size element specifies the maximum number of connections for a pool. No more connections will be created in each sub-pool",
"expressions-allowed" => true,
"nillable" => true,
"default" => 20,
"access-type" => "read-write",
"storage" => "configuration",
"restart-required" => "no-services"
},
But then writing an expression value yields an exception
Request
[ERROR] {
[ERROR] "operation" => "composite",
[ERROR] "address" => [],
[ERROR] "steps" => [{
[ERROR] "address" => [
[ERROR] ("profile" => "full"),
[ERROR] ("subsystem" => "datasources"),
[ERROR] ("data-source" => "ExampleDS")
[ERROR] ],
[ERROR] "operation" => "write-attribute",
[ERROR] "name" => "max-pool-size",
[ERROR] "value" => expression "${pool:15}"
[ERROR] }]
[ERROR] }
08:48:23,965 DEBUG [org.jboss.as.controller.management-operation] (HttpManagementService-threads - 5) JBAS014616: Operation ("write-attribute") failed - address: ([
("subsystem" => "datasources"),
("data-source" => "ExampleDS")
]) - failure description: "JBAS014688: Wrong type for value. Expected [INT] but was EXPRESSION"