I have a remote RabbitMQ server which has some queues I want to listen to. I tried this:

```
@RabbitListener(queues = "queueName")
public void receive(String message) {
    System.out.println(message);
}

```

But it tried to create a new queue. Result is predictable - access denied.

```
o.s.a.r.listener.BlockingQueueConsumer   : Failed to declare queue: queueName

```

I didn't declare any queue in any other way.

How can I listen to an existing queue on a remote server? Also, is there a way to check if this queue exists? And I saw this line

```
@RabbitListener(queues = "#{autoDeleteQueue2.name}")

```

in a tutorial. What does `#{queueName.name}` mean?

Logs and the beginning of the stack trace:

```
2018-08-30 22:10:21.968  WARN 12124 --- [cTaskExecutor-1] o.s.a.r.listener.BlockingQueueConsumer   : Failed to declare queue: queueName
2018-08-30 22:10:21.991  WARN 12124 --- [cTaskExecutor-1] o.s.a.r.listener.BlockingQueueConsumer   : Queue declaration failed; retries left=3

org.springframework.amqp.rabbit.listener.BlockingQueueConsumer$DeclarationException: Failed to declare queue(s):[queueName]
    at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.attemptPassiveDeclarations(BlockingQueueConsumer.java:711) ~[spring-rabbit-2.0.5.RELEASE.jar:2.0.5.RELEASE]
    at org.springframework.amqp.rabbit.listener.BlockingQueueConsumer.start(BlockingQueueConsumer.java:588) ~[spring-rabbit-2.0.5.RELEASE.jar:2.0.5.RELEASE]
    at org.springframework.amqp.rabbit.listener.SimpleMessageListenerContainer$AsyncMessageProcessingConsumer.run(SimpleMessageListenerContainer.java:996) [spring-rabbit-2.0.5.RELEASE.jar:2.0.5.RELEASE]
    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_131]

```