Template.convertAndSend returning error message after 3 minutes
This post has NOT been accepted by the mailing list yet.
I have two machines running rabbitMQ in ha-all mode. One of those machines got into a bug condition of the version 3.3.5 that starts a "broken" non-functional queue reported in this link bug queue limbo With that scenario of the locked queue my application got stuck trying to send an asynchronous message. I'm using a direct exchange with spring-amqp.
2016-01-13 14:54:46,680 [REFID:] [DEBUG]  [Service] Sending message to RabbitMQ using AmqpTemplate 2016-01-13 14:57:57,637 [REFID:] [ERROR]  [Service] Error sending message to RabbitMQ
So, is there any way to put a timeout to the method amqpTemplate.convertAndSend? I tried to find the timeout method in the documentation and there is only a timeout for the connectionFactory. In a method that is asynchronous why it got stuck for so long?