title: Number of Messages in Mule ESB VM inbound endpoint Queue
body: <p>How to get the number of messages in Mule ESB vm inbound endpoint Queue from the code? </p>
  
  <p>Here is the configuration:</p>
  
  <pre><code>    &lt;vm:connector name="queue.vm.connector"&gt;
      &lt;vm:queue-profile maxOutstandingMessages="${oms.process.flow.max.queue.size}"/&gt;
  &lt;/vm:connector&gt;
  
  ...
  &lt;flow name="Flow1"...
  &lt;vm:inbound-endpoint exchange-pattern="one-way" path="inbound_parcel.create.queue" responseTimeout="10000" mimeType="text/plain" connector-ref="queue.vm.connector" doc:name="Inbound Parcel Create Queue"/&gt;
  </code></pre>
  
  <p>Thank you.</p>