[jboss-as7-dev] Accessing subsystem runtime attributes

Francesco Marchioni marchioni.francesco at gmail.com
Mon May 9 07:31:20 EDT 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20110509/dda157cd/attachment.html 


More information about the jboss-as7-dev mailing list