title: RabbitMQ - no queue found stopping Spring server
body: <p>I have a spring application which is consuming messages from rabbitmq. 
  However, the spring server fails to start when the RabbitMQ server is down.</p>
  
  <p>Below is the exception,</p>
  
  <pre><code>Caused by: com.rabbitmq.client.ShutdownSignalException: connection error; protocol method: #method&lt;connection.close&gt;(reply-code=530, reply-text=NOT_ALLOWED - vhost test_queue not found, class-id=10, method-id=40)
          at com.rabbitmq.utility.ValueOrException.getValue(ValueOrException.java:66) ~[amqp-client-4.0.1.jar:4.0.1]
          at com.rabbitmq.utility.BlockingValueOrException.uninterruptibleGetValue(BlockingValueOrException.java:32) ~[amqp-client-4.0.1.jar:4.0.1]
          at com.rabbitmq.client.impl.AMQChannel$BlockingRpcContinuation.getReply(AMQChannel.java:366) ~[amqp-client-4.0.1.jar:4.0.1]
          at com.rabbitmq.client.impl.AMQChannel.privateRpc(AMQChannel.java:229) ~[amqp-client-4.0.1.jar:4.0.1]
          at com.rabbitmq.client.impl.AMQChannel.exnWrappingRpc(AMQChannel.java:117) ~[amqp-client-4.0.1.jar:4.0.1]
          at com.rabbitmq.client.impl.AMQConnection.start(AMQConnection.java:381) ~[amqp-client-4.0.1.jar:4.0.1]
          at com.rabbitmq.client.impl.recovery.RecoveryAwareAMQConnectionFactory.newConnection(RecoveryAwareAMQConnectionFactory.java:62) ~[amqp-client-4.0.1.jar:4.0.1]
  </code></pre>
  
  <p>Is there a way to still have the spring application start even when no queue is found?</p>
  
  <p>Spring configuration.</p>
  
  <pre><code>&lt;rabbit:connection-factory id="connectionFactory" host="${host}" port="${port}" username="${rabbitmq.username}" password="${rabbitmq.password}" virtual-host="${rabbitmq.virtualhost}"/&gt;
  
      &lt;rabbit:queue name="${rabbitmq.create.queue}" /&gt;
  
  
      &lt;rabbit:template queue="${rabbitmq.feedback.queue}"
      exchange="${rabbitmq.feedback.exchange}" id="amqpTemplate"
      connection-factory="connectionFactory" /&gt;
  
      &lt;bean id="xyzConsumerListener" class="com.sample.rabbitmq.listener.XyzConsumerListener"&gt;
      &lt;/bean&gt;
  
      &lt;rabbit:listener-container id="myListenerContainer" connection-factory="connectionFactory"&gt;
          &lt;rabbit:listener ref="xyzConsumerListener" queue-names="${rabbitmq.create.queue}"/&gt;
      &lt;/rabbit:listener-container&gt;
  </code></pre>
  
  <p>Regards,
  Farhan</p>