[rabbitmq-discuss] can I check queue exists or not?
Deepak Vijayvergiy
vdeepak at yahoo-inc.com
Thu Mar 17 05:48:41 GMT 2011
Hi,
>> 2.Who creates the message queue; Producer/Consumer?
I think, queue creation is more about consumer, because a queue is bound to a binding key which is more of a consumer's concern instead of Producer.
>> 3.How can I know that message queue exist or not before publishing the message into a queue?
When you publish, you publish with routing key and its broker's work to route it to the queue having binding key which satisfies producer's routing key.
I mean, you can publish with routing key as PUB.ENABLE, and then you can publish with PUB.DISABLE. At the consumer side, it can have single queue for both routing keys (the binding key will be PUB.*) or it can have 2 separate queues.
Thanks
Regards
Deepak
On Mar 17, 2011, at 11:04 AM, John DeTreville wrote:
> Sam,
>
> A message queue is a logical construct. You don't get to know how it is stored, but you don't need to know, because you access it through an interface.
>
> You create a queue by declaring it. Declaring it twice is the same as declaring it once, so it's reasonable for producers and consumers both to declare the queues they use.
>
> Cheers,
> John
>
>
> On Mar 16, 2011, at 22:04, "sam_mis" <sameek at arosys.com> wrote:
>
>>
>> Hi All
>>
>> I am using Rabbitmq Java client.I have certain doubt in mind :
>>
>> 1.Message queue is logical or physical existence in the memory?
>> 2.Who creates the message queue; Producer/Consumer?
>> 3.How can I know that message queue exist or not before publishing the
>> message into a queue?
>> Is possible or not.if possible then please explain How?
>>
>> Thanks
>> --
>> View this message in context: http://old.nabble.com/can-I-check-queue-exists-or-not--tp31169963p31169963.html
>> Sent from the RabbitMQ mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> rabbitmq-discuss mailing list
>> rabbitmq-discuss at lists.rabbitmq.com
>> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss
mailing list