AS: *Jboss 7*

Let's say I have a queue defined in file: 

{JBOSS7\_HOME}/standalone/configuration/standalone.xml

```
<jms-queue name="myQueue">
    <entry name="java:/queue/myQueue"/>
    <durable>true</durable>
</jms-queue>

```

**Question:** 

How to check programatically number of messages in queue?