Hi Heiko,<br><br>&gt;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=&quot;java:/H2DS&quot;:read-attribute<br>
(name=&quot;ConnectionCount&quot;)<br>{<br>    &quot;outcome&quot; =&gt; &quot;failed&quot;,<br>    &quot;failure-description&quot; =&gt; &quot;No known attribute called ConnectionCount&quot;<br>}<br><br>By using <br>/subsystem=datasources/data-source=&quot;java:/H2DS&quot;: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=&quot;java:/H2DS&quot;:read-resource<br>
(include-runtime=true)<br>{<br>    &quot;outcome&quot; =&gt; &quot;success&quot;,<br>    &quot;result&quot; =&gt; {<br>        &quot;connection-url&quot; =&gt; &quot;jdbc:h2:mem:test;DB_CLOSE_DELAY=-1&quot;,<br>        &quot;driver-class&quot; =&gt; &quot;org.h2.Driver&quot;,<br>
        &quot;jndi-name&quot; =&gt; &quot;java:/H2DS&quot;,<br>        &quot;driver&quot; =&gt; &quot;org.h2.Driver#1.2&quot;,<br>        &quot;pool-name&quot; =&gt; &quot;H2DS&quot;,<br>        &quot;use-java-context&quot; =&gt; true,<br>
        &quot;enabled&quot; =&gt; true,<br>        &quot;pool-prefill&quot; =&gt; true,<br>        &quot;pool-use-strict-min&quot; =&gt; false,<br>        &quot;user-name&quot; =&gt; &quot;sa&quot;,<br>        &quot;password&quot; =&gt; &quot;sa&quot;,<br>
        &quot;share-prepared-statements&quot; =&gt; false,<br>        &quot;background-validation&quot; =&gt; false,<br>        &quot;use-fast-fail&quot; =&gt; false,<br>        &quot;validate-on-match&quot; =&gt; false,<br>
        &quot;idle-timeout-minutes&quot; =&gt; undefined,<br>        &quot;blocking-timeout-wait-millis&quot; =&gt; undefined,<br>        &quot;background-validation-minutes&quot; =&gt; undefined,<br>        &quot;min-pool-size&quot; =&gt; undefined,<br>
        &quot;max-pool-size&quot; =&gt; undefined<br>    },<br>    &quot;compensating-operation&quot; =&gt; undefined<br>}<br><br><br>Francesco<br><br><br><br><br><div class="gmail_quote">2011/5/9 Heiko W.Rupp <span dir="ltr">&lt;<a href="mailto:hrupp@redhat.com">hrupp@redhat.com</a>&gt;</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>
&gt; Dear devs,<br>
&gt; I&#39;m wondering how runtime attributes (such as ConnectionCount for a ManagedConnection Pool, or Thread&#39;s QueueSize) could be gathered on AS 7.<br>
&gt; 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>
    &quot;outcome&quot; =&gt; &quot;success&quot;,<br>
    &quot;result&quot; =&gt; &quot;no metrics available&quot;,<br>
    &quot;compensating-operation&quot; =&gt; 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>