We are trying to use spring-rabbit to create a message listener, in our spring boot application. But, we are getting an issue during receiving message if the queue doesn't exist, the application throws an error, which is called as passive declaration.
Channel error on connection (172.13.1.3:49352 -> 172.13.1.7:5672, vhost: '/', user: 'guest'), channel 1:
message_queue_1_1 | operation queue.declare caused a channel exception not_found: no queue 'add' in vhost '/'
What we want is to declare a queue actively, i.e. if the queue doesn't exist, it should be declared inside the mq.