Dear devs,
I'm wondering how runtime attributes (such as ConnectionCount for a ManagedConnection Pool, or Thread's QueueSize) could be gathered on AS 7.
By using CLI ? Using a recursive read-resource, just dumps the resource startup properties.....

[localhost:9999 /] /subsystem=datasources/data-source="java:/H2DS":read-resource
(recursive="true")
{
    "outcome" => "success",
    "result" => {
        "connection-url" => "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1",
        "driver-class" => "org.h2.Driver",
        "jndi-name" => "java:/H2DS",
        "driver" => "org.h2.Driver#1.2",
        "pool-name" => "H2DS",
        "use-java-context" => true,
        "enabled" => true,
        "pool-prefill" => true,
        "pool-use-strict-min" => false,
        "user-name" => "sa",
        "password" => "sa",
        "share-prepared-statements" => false,
        "set-tx-query-timeout" => false,
        "background-validation" => false,
        "use-fast-fail" => false,
        "validate-on-match" => false
    },
    "compensating-operation" => undefined
}

Thanks a lot
Francesco Marchioni