bcgov / jrcc-document-access-libs

GNU General Public License v3.0
1 stars 4 forks source link

Fixed issue with missing queues on master node #176

Closed alexjoybc closed 4 years ago

alexjoybc commented 4 years ago

This PR includes the following proposed change:

the following documentation explained the behavior:

https://docs.spring.io/spring-amqp/api/org/springframework/amqp/rabbit/listener/SimpleMessageListenerContainer.html#setMissingQueuesFatal-boolean-

With this flag set to false, then the container (rabbit simple container) will reconnect to the queue, this would solve the issue with losing the rabbitmq master node on rabbit.

I also found this on google:

https://groups.google.com/forum/#!topic/rabbitmq-users/QqYk3HXoyrQ