title: JMS: how can I enqueue a task that have failed?
body: <p>I'm using spring boot and I have a task which consists on invoking an external API to create a resource. In other words, it's just an API call which take a simple parameter.</p>
  
  <p>Since that call is asynchronous, i need to ENSURE that the resource is created. So if the first call to the api fails, it has to be enqueued in order to retry after X seconds. Once the api call completes successfuly, i have to remove that api call from the queue.</p>
  
  <p>How can i achieve this behaviour? I was looking for using ActiveMQ. Is there any other proposal which could work better with spring boot?</p>