Hi Heiko,<br><br>>use read-attribute:<br>well that was my first trial, however it seems that attribute names does not map to earlier AS Mbean attributes:<br><br>[localhost:9999 /] /subsystem=datasources/data-source="java:/H2DS":read-attribute<br>
(name="ConnectionCount")<br>{<br> "outcome" => "failed",<br> "failure-description" => "No known attribute called ConnectionCount"<br>}<br><br>By using <br>/subsystem=datasources/data-source="java:/H2DS":read-resource(include-runtime=true)<br>
produces the just the initial set of properties, though it may be that simply no runtime information is available at the moment...... <br><br>[localhost:9999 /] /subsystem=datasources/data-source="java:/H2DS":read-resource<br>
(include-runtime=true)<br>{<br> "outcome" => "success",<br> "result" => {<br> "connection-url" => "jdbc:h2:mem:test;DB_CLOSE_DELAY=-1",<br> "driver-class" => "org.h2.Driver",<br>
"jndi-name" => "java:/H2DS",<br> "driver" => "org.h2.Driver#1.2",<br> "pool-name" => "H2DS",<br> "use-java-context" => true,<br>
"enabled" => true,<br> "pool-prefill" => true,<br> "pool-use-strict-min" => false,<br> "user-name" => "sa",<br> "password" => "sa",<br>
"share-prepared-statements" => false,<br> "background-validation" => false,<br> "use-fast-fail" => false,<br> "validate-on-match" => false,<br>
"idle-timeout-minutes" => undefined,<br> "blocking-timeout-wait-millis" => undefined,<br> "background-validation-minutes" => undefined,<br> "min-pool-size" => undefined,<br>
"max-pool-size" => undefined<br> },<br> "compensating-operation" => undefined<br>}<br><br><br>Francesco<br><br><br><br><br><div class="gmail_quote">2011/5/9 Heiko W.Rupp <span dir="ltr"><<a href="mailto:hrupp@redhat.com">hrupp@redhat.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Am 09.05.2011 um 13:31 schrieb Francesco Marchioni:<br>
<div class="im"><br>
> Dear devs,<br>
> I'm wondering how runtime attributes (such as ConnectionCount for a ManagedConnection Pool, or Thread's QueueSize) could be gathered on AS 7.<br>
> By using CLI ? Using a recursive read-resource, just dumps the resource startup properties.....<br>
<br>
<br>
</div>use read-attribute:<br>
<br>
[domain@localhost:9999 connector=http] :read-attribute(name=maxTime)<br>
{<br>
"outcome" => "success",<br>
"result" => "no metrics available",<br>
"compensating-operation" => undefined<br>
}<br>
<br>
<br>
<br>
_______________________________________________<br>
jboss-as7-dev mailing list<br>
<a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a><br>
</blockquote></div><br>