Re: how to delete queue from jms client

2011-12-09 Thread Gaston Quezada
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 g...@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

Re: how to delete queue from jms client

2011-12-09 Thread Fraser Adams
Hi Gordon, These examples are great, however I have to admit that I find the cwiki.apache.org/confluence/ hard to find. It's only because I bookmarked a link you previously sent on https://cwiki.apache.org/confluence/display/qpid/Qpid+extensions+to+AMQP that I ever made it there at all. I

Re: how to delete queue from jms client

2011-12-09 Thread Gordon Sim
On 12/09/2011 05:15 PM, Fraser Adams wrote: These examples are great, however I have to admit that I find the cwiki.apache.org/confluence/ hard to find. It's only because I bookmarked a link you previously sent on https://cwiki.apache.org/confluence/display/qpid/Qpid+extensions+to+AMQP that I

Re: how to delete queue from jms client

2011-12-09 Thread Fraser Adams
Gordon Sim wrote: I wouldn't consider these addressing examples as canonical reference material! The Programming in Apache Qpid book is a bit of a mixture of things. I'm not yet sure if or how these would fit in with that. In the meantime I wanted to at least have somewhere where we could

Re: how to delete queue from jms client

2011-12-07 Thread Gordon Sim
On 12/06/2011 07:46 PM, Fraser Adams wrote: There's some useful docs for x-declare here https://cwiki.apache.org/confluence/display/qpid/Qpid+extensions+to+AMQP but it's quite hard to find and doesn't really illustrate that you still need the auto-delete:True bit, which is possibly something

Re: how to delete queue from jms client

2011-12-07 Thread Gaston Quezada
Dear Gordon, how to configure the auto-delete-timeout tag in the format BURL 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

Re: how to delete queue from jms client

2011-12-07 Thread Gordon Sim
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 +

Re: how to delete queue from jms client

2011-12-06 Thread Pavel Moravec
Hi Gastón, you can use QMF method delete with parameters type (queue in our case) and name (name of the queue). Here is the code snippet from C++ program I use: Connection connection(url/*, connectionOptions*/); try { connection.open(); Session session =

Re: how to delete queue from jms client

2011-12-06 Thread Fraser Adams
Here's some Java code for method invocation. This largely follows a similar pattern to Pavel's C++ example. Note that this method is taken from a much larger QMF2 API that I've written ,so there's some dependencies on other classes (you won't be able to use it directly, but hopefully you'll

Re: how to delete queue from jms client

2011-12-06 Thread Gaston Quezada
Dear Fraser, I need to configure the auto-delete arguments, with this parameter: arguments:{'qpid.auto_delete_timeout':120} When I create the queue, the logs show a empty field argument. Log: main 2011-12-06 15:45:54,562 DEBUG [apache.qpid.transport.Connection] SEND: [conn:db23f1] ch=0 id=2

Re: how to delete queue from jms client

2011-12-06 Thread Fraser Adams
Hi Gaston, Try the following syntax (BTW IIRC you need at least Qpid 0.10 for timed auto deletes to work): Also I can't claim credit for the following, this was a response from uber-guru Gordon Sim when I asked a similar question back in July To create a 'shared' queue on-demand: my-queue;

Re: how to delete queue from jms client

2011-12-06 Thread Fraser Adams
Gaston, I forgot to ask, but you are using the C++ broker aren't you? I'm pretty sure that the Java broker doesn't support timed auto delete, and as I mentioned before the C++ broker supports this from version 0.10 Frase Fraser Adams wrote: Hi Gaston, Try the following syntax (BTW IIRC you