qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Praveen M <lefthandma...@gmail.com>
Subject Re: dynamic delete queues using the Java client?
Date Wed, 16 Nov 2011 01:48:05 GMT
Thanks for the mail Robbie.

Delete on receiver session close sounds reasonable for my use case.

On Sun, Nov 13, 2011 at 10:41 AM, Robbie Gemmell
<robbie.gemmell@gmail.com>wrote:

> The Qpid clients offer an extension (JMS deliberately doesnt actually
> offer a way to create or delete non-temporary Queues:
> Session.createQueue doesnt actually create queues at all, and just
> returns reference objects to Queue identities) whereby a
> consumer/producer can actually create and delete queues on the broker
> at the point of being created and closed respctively, when specified
> via the Address strings
> (
> http://qpid.apache.org/books/0.12/Programming-In-Apache-Qpid/html/ch02s04.html
> ).
>
> Thus one way to accomplish what you want would be to use a
> consumer/producer with an appropriately crafted Address string to do
> the delete when they are closed. Alternatively, depending on how you
> use the queues you might insead make use of auto-delete queues, which
> get deleted when the session is closed. Finally, the Java broker has a
> JMX interface and the C++ broker a QMF interface which you can use to
> manage the queues.
>
> Robbie
>
> On 12 November 2011 00:28, Praveen M <lefthandmagic@gmail.com> wrote:
> > Hi,
> >
> >   I understand that the JMS client allows createQueue() dynamically. Is
> > there also a way to delete a queue dynamically at run time?
> >
> > My use case is primarily towards test environments. There are a lot of
> > queues created in context of various tests, I'd like to clean them up
> than
> > leave them behind.
> >
> > Thanks,
> > --
> > -Praveen
> >
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>


-- 
-Praveen

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