I have following situation. RabbitMQ is used by two systems: system1 and system2. Neither of them is a master system and each of them create own exchanges and queues. See attachment. The problem is when exchanges and queues are not yet configured (first start, or rabbitmq restart) and either system1 or system2 starts. Then I get following exception for listener:
and the system goes down.
Caused by AmqpIllegalStateException: Fatal exception on listener startup
Caused by FatalListenerStartupException: Cannot prepare queue for listener. Either the queue doesn't exist or the broker will not allow us to use it.
Caused by IOException: null
Caused by ShutdownSignalException
Is there possibility, that listener automatically reconnect to queue even if it does not exist before and such situation does not cause system shutdown? Or maybe there is something wrong in such architecture?