ActiveMQ - Removing queues programatically

Posted by Eduardo Z. on Stack Overflow See other posts from Stack Overflow or by Eduardo Z.
Published on 2010-06-14T11:47:38Z Indexed on 2010/06/14 11:52 UTC
Read the original article Hit count: 330

Filed under:
|
|

Fellow StackOverflowers, is there a way for me to remove a queue or a topic in ActiveMQ programatically? I am using ActiveMQ's standard persistency, and my application requires that, on startup, all new queues be dynamically re-created (unless there are messages stored in the queue, in which case, the queue should remain to exist).

I am also creating all queues programatically through sessions. Is there an equivalent to that procedure, only to delete a queue? Querying and iterating through the existing queues would also be useful, but i haven't found a way to do that yet.

Please help an ActiveMQ noob! =)

© Stack Overflow or respective owner

Related posts about persistence

Related posts about queue