You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Jiri Krutil <ji...@krutil.com> on 2011/06/14 08:35:47 UTC

Delete queue/exchange/binding from C++ client

Hi

Few questions regarding the (new) C++ client:

1. Is there a way how to programmatically delete queues, exchanges and  
bindings from the C++ client?

2. What happens if I re-declare an existing queue or exchange from the  
C++ client, specifying in the address different attributes than what  
the object currently has?

3. I am re-declaring an existing queue from the C++ client. I am  
providing a list of bindings in x-bindings part of the address. What  
happens if my binding list differs from the bindings that currently  
exist for the queue? Will the extra bindings be added and the missing  
bindings be deleted from the broker?

Cheers
Jiri


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


Re: Delete queue/exchange/binding from C++ client

Posted by Gordon Sim <gs...@redhat.com>.
On 06/14/2011 11:35 AM, Jakub Scholz wrote:
> How do these QMF messages work with ACL? Are the ACL rules (for
> example creating a queues only with specific name/parameters)
> validated when creating a queue using QMF or are they ignored?

Yes, the ACL rules are validated.

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


Re: Delete queue/exchange/binding from C++ client

Posted by Jakub Scholz <ja...@scholz.cz>.
Hi Gordon,

How do these QMF messages work with ACL? Are the ACL rules (for
example creating a queues only with specific name/parameters)
validated when creating a queue using QMF or are they ignored?

Thanks & Regards
Jakub

2011/6/14 Gordon Sim <gs...@redhat.com>:
> On 06/14/2011 07:35 AM, Jiri Krutil wrote:
>>
>> Hi
>>
>> Few questions regarding the (new) C++ client:
>>
>> 1. Is there a way how to programmatically delete queues, exchanges and
>> bindings from the C++ client?
>
> As of the 0.10 release, you can do that via the map-message based management
> protocol. I've attached some notes on that and a rudimentary example of
> deleting via the c++ messaging API.
>
>> 2. What happens if I re-declare an existing queue or exchange from the
>> C++ client, specifying in the address different attributes than what the
>> object currently has?
>
> Generally the differences are ignored. However when using addresses you can
> include an assert option to ensure you get what you asked for.
>
> You can also create queues using the management protocol. In that case, if
> the queue already exists you will get back an error message informing you of
> that.
>
>> 3. I am re-declaring an existing queue from the C++ client. I am
>> providing a list of bindings in x-bindings part of the address. What
>> happens if my binding list differs from the bindings that currently
>> exist for the queue? Will the extra bindings be added and the missing
>> bindings be deleted from the broker?
>
> The extra bindings will be added, but no pre-existing bindings will be
> removed.
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>

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


Re: Delete queue/exchange/binding from C++ client

Posted by Gordon Sim <gs...@redhat.com>.
On 06/14/2011 07:35 AM, Jiri Krutil wrote:
> Hi
>
> Few questions regarding the (new) C++ client:
>
> 1. Is there a way how to programmatically delete queues, exchanges and
> bindings from the C++ client?

As of the 0.10 release, you can do that via the map-message based 
management protocol. I've attached some notes on that and a rudimentary 
example of deleting via the c++ messaging API.

> 2. What happens if I re-declare an existing queue or exchange from the
> C++ client, specifying in the address different attributes than what the
> object currently has?

Generally the differences are ignored. However when using addresses you 
can include an assert option to ensure you get what you asked for.

You can also create queues using the management protocol. In that case, 
if the queue already exists you will get back an error message informing 
you of that.

> 3. I am re-declaring an existing queue from the C++ client. I am
> providing a list of bindings in x-bindings part of the address. What
> happens if my binding list differs from the bindings that currently
> exist for the queue? Will the extra bindings be added and the missing
> bindings be deleted from the broker?

The extra bindings will be added, but no pre-existing bindings will be 
removed.