title: Retry mechanism for producer's client of ActiveMQ with JMS and spring
body: <p>Is there a mechanism or example implementation of a retry mechanism/solution for a producer using ActiveMQ with JMS (more precisely, with JmsTemplate) and spring framework ?<br>
  My use case, which I want to handle is, when the broker is not available, for example, I want to make some number of retries, maximum 6 (if possible with exponential delays between each). So, I need also to track the number of retries for a message between each attempt.
  I am aware the the redelivery policy for the consumer, but also I want to implement a reliable producer's client side as well</p>
  
  <p>Thanks, 
  Simeon</p>