title: How to define max queue size using Spring-JMS
body: <p>I followed Spring-boot article to define local activemq:
  <a href="https://spring.io/guides/gs/messaging-jms/" rel="nofollow">https://spring.io/guides/gs/messaging-jms/</a></p>
  
  <p>I would like to set the queue size(for X times). so when producer try to enqueue new times it will get expcetion in case the size is on it's limit</p>
  
  <p>How could I define that?</p>
  
  <p>thank you.</p>