[rabbitmq-discuss] Subscribing to a queue regardless of its parameters (auto-delete, ack, etc.)

Matthias Radestock matthias at rabbitmq.com
Fri Aug 13 16:04:06 BST 2010


Orhan,

On 11/08/10 11:39, Orhan Kavrakoglu wrote:
> I have a client-side library (modified PHP Zend_Queue classes over the
> STOMP adapter) which I use to subscribe to some queues. However, the
> interface provided by the STOMP adapter seems to want the exact
> parameters a queue was created with in order to subscribe to it. (That
> is, if a queue was created with the non-default "auto-delete: false"
> parameter, you have to specify "auto-delete: false" when subscribing to
> it.) This complicates the client code, especially given that the queue
> was created in a Java program somewhere else. Is there a way to work
> around this?

By setting "passive=true" in the header you should be able to make the 
queue declaration passive, which means that all that matters is whether 
the queue exists.


Regards,

Matthias.


More information about the rabbitmq-discuss mailing list