qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Ross <tr...@redhat.com>
Subject Re: how can I know if a queue name has been declared or not from a client?
Date Wed, 18 Mar 2009 14:02:34 GMT
Shan Wang wrote:
> My client program will declare the queue in the beginning, but there's
> no point of redeclaring a queue if it already exists. Is there a API
> call for clients to tell if a queue name is being used already?
There is a queue.query you could use for this purpose but it's easier 
and more efficient to use queue.declare every time.  queue.declare will 
create the queue only if it doesn't already exist.


Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

View raw message