qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaston Quezada <quezada.gas...@gmail.com>
Subject Re: how to delete queue from jms client
Date Fri, 09 Dec 2011 14:08:30 GMT
Dear Gordon,

I appreciate all your support. Your advice on the creation of the queue
worked well.

thank you very much.

Gastón,


2011/12/7 Gordon Sim <gsim@redhat.com>

> On 12/07/2011 08:06 PM, Gaston Quezada wrote:
>
>> Dear Gordon,
>>
>> how to configure the auto-delete-timeout tag in the format BURL
>>
>
> I don't think you can do that with the BURL syntax.
>
>
>  this is my code:
>>
>> String address = "BURL:direct://exchange-**output/" + this.replyTo + "/"
>> +
>> this.replyTo + "?routingkey='"+this.replyTo";
>> AMQDestination dest1 = new AMQAnyDestination(address);
>>
>> if the option is ADRR format, how to defined by the exchange, queue,
>> routingkey a single URL?
>>
>
> I'm not entirely sure what it is you want to do (and I don't know enough
> about how the BURL syntax above is supposed to work to deduce this reliably
> from your string above).
>
> However, assuming that what you want is to create a named queue on-demand
> with the delayed auto-deletion function enabled, and also ensure that the
> queue is bound to a given exchange, you could use the following (with the
> ADDR style syntax and an exchange called my-exchange, a queue called
> my-queue and a routing key with value my-key):
>
> my-queue; {create: always, node:{x-declare:{queue:'my-**queue',auto-delete:True,
> arguments:{'qpid.auto_delete_**timeout':30}}, x-bindings:[{exchange:'my-**exchange',
> key:'my-key'}]}}
>
> Note however that when you create a producer for that address it will
> publish straight to the queue, not go through the exchange. If it's the
> latter you want you could instead use:
>
> my-exchange/my-key; {link:{name:'my-queue', x-declare:{auto-delete:True,
> arguments:{'qpid.auto_delete_**timeout':30}}}}
>
> Hope this helps, but if not perhaps you can give some more context for
> what you are trying to do.
>
>
> ------------------------------**------------------------------**---------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.**apache.org<users-subscribe@qpid.apache.org>
>
>


-- 
Gastón Quezada

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message