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 <[email protected]>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 <[email protected]> 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:[email protected] > > -- -Praveen
