title: How to access JMS statistics in Spring Boot?
body: <p>I understand that JMS has no statistics specs, so there is no standard way of reading things like "count of messages processed", "average time in queue" etc.</p>
  
  <p>I'm looking at two approaches:</p>
  
  <ol>
  <li>Access the ActiveMQ statistics directly</li>
  <li>Maintain statistics in the JMS message consumer</li>
  </ol>
  
  <p>With (1) I'm not finding examples how to get thos stats using Spring Boot. With (2), I'm wondering if the consumer itself needs to maintain the statistics, or if there's a better way.</p>
  
  <p>Does anyone have any working examples?</p>