Search code examples
javaspringamqpspring-amqp

Spring Amqp : Purpose of getRequiredQueueNames method


What is the real purpose of the protected String[] AbstractMessageListenerContainer #getRequiredQueueNames() method.

Is it for customizing SimpleMessageListenerContainer queue names resolution when overloaded ?


Solution

  • This method is obsolete since version 1.7 (AMQP-672) and can be removed (it will be in 2.0).

    Before version 1.7, the container would not start if no queues were defined. You can now start the container with no queues; you can add them later.