Hallo,

I'm trying to create a queue using qmf message to qpidd cpp (1.38) as follows
(pseudocode, actually pn_data_* functions are used to construct the message):

   subject='broker',
   correlation_id='1',
   reply_to='XXXXXXXXX',
   properties={
      'method': 'request'
      'qmf.opcode': '_method_request',
      'x-amqp-0-10.app-id': 'qmf2',
   },
   content={
      '_object_id': {
         '_object_name': 'org.apache.qpid.broker:broker:amqp-broker'
      },
      '_method_name': 'create',
      '_arguments': {
         'type': 'queue',
         'name': u'test',
         'strict': True,
         'properties': {
             'auto-delete': True,
         }
      }
   }

Queue is created and auto-delete property is set, but as I understand to make
auto deletion actually work 'exclusive' property has to be added. Is it
possible using this kind of message? I tried to add 'exclusive': True to
message but it did not work.

Best regards,

On 13.03.2018 13:41, Gordon Sim wrote:
> On 13/03/18 10:25, Michael Ivanov wrote:
>> Hallo,
>>
>> On 16.02.2018 21:37, Gordon Sim wrote:
>>
>>> If the queue is both auto-delete and exclusive, it is deleted when the link 
>>> that caused it to be created is closed. If it is
>>> auto-delete only, it is deleted when it is 'no longer used', which is 
>>> currently interpreted by qpidd to being when there are no
>>> links to it in either direction.In AMQP 1.0 this can also be controlled 
>>> through the 'lifetime-policy' property in the
>>> dynamic-node-properties field.
>>>
>>> Unfortunately the messenger API gives you no control over the type of queue 
>>> you request, nor (I think) does it allow you to
>>> close senders (which may in itself be a problem) or use an anonymous sender.
>>
>> Does proton have alternate interface which would allow to specify type of 
>> temporary queue or lifetime policy?
> 
> Yes, the recommended API for proton provides better controller over the 
> various aspects of the protocol than the messenger API
> did: https://qpid.apache.org/proton/index.html
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
> For additional commands, e-mail: users-h...@qpid.apache.org
> 


-- 
 \   / |                                   |
 (OvO) |  Михаил Иванов                    |
 (^^^) |      Тел.:    +7(911) 223-1300    |
  \^/  |      E-mail:  iv...@isle.spb.ru   |
  ^ ^  |                                   |

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to