Duplicate queue(with same name) are getting created when running producer and consumer

864 views
Skip to first unread message

Vineet Arora

unread,
Feb 2, 2016, 5:35:55 AM2/2/16
to rabbitmq-users
Hello,

I have two application, one is Producer and one is Consumer, when I am running producer application it creates a queue (checked from management plugin), but when at same time , i am running a consumer, it is creating queue with same name and not consuming message created by producer application, so after running the consumer application , I am getting two queue with same name created.

Can any one please help me out. I am stuck at this point.

Regards
Vineet

Michael Klishin

unread,
Feb 2, 2016, 6:55:14 AM2/2/16
to rabbitm...@googlegroups.com, Vineet Arora
 On 2 February 2016 at 13:35:57, Vineet Arora (mymail...@gmail.com) wrote:
> I have two application, one is Producer and one is Consumer,
> when I am running producer application it creates a queue (checked
> from management plugin), but when at same time , i am running a
> consumer, it is creating queue with same name and not consuming
> message created by producer application, so after running the
> consumer application , I am getting two queue with same name created.

Two queues with the same name cannot exist in a vhost, so your apps almost certainly connect
to different vhosts.

Also see logs: it can be that one of the declarations simply fails with a channel error but it comes
unnoticed for some reason.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ


Reply all
Reply to author
Forward
0 new messages