[jboss-as7-dev] CLI - Displaying allowed-values for attributes

Jaikiran Pai jpai at redhat.com
Mon Apr 16 07:20:16 EDT 2012


IIRC some releases back, if an attribute in a domain model resource, 
allowed a certain set of values, then a read-resource-description via 
the CLI would show the allowed values. But checking against the latest 
upstream, I don't see it available any more. For example the 
timeout-unit attribute of the strict-max-bean-instance-pool resource no 
longer shows the allowed values:

[standalone at localhost:9999 /] 
/subsystem=ejb3/strict-max-bean-instance-pool=slsb-strict-max-pool:read-resource-description
{
     "outcome" => "success",
     "result" => {
         "description" => "A bean instance pool with a strict upper limit",
         "attributes" => {
             "timeout-unit" => {
                 "type" => STRING,
                 "description" => "The instance acquisition timeout unit",
                 "expressions-allowed" => false,
                 "nillable" => true,
                 "default" => "MINUTES",
                 "access-type" => "read-write",
                 "storage" => "configuration",
                 "restart-required" => "no-services"
             },
...

Was this change intentional? It would be nice to be able to know what 
values are allowed for certain attributes. By the way, is it just the 
CLI that would need a change for this or does this involve much more?

-Jaikiran


More information about the jboss-as7-dev mailing list