activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Bain <tb...@alumni.duke.edu>
Subject Re: Delete/Purge Topic
Date Tue, 01 Aug 2017 04:09:57 GMT
The topic deletion URL you found sounds like it should work, though it's
not something I've ever played with. Does it work as expected for you?

The command line tools have a way to purge messages from a destination (see
the purge task at the bottom of
http://activemq.apache.org/activemq-command-line-tools-reference.html), but
I've not used it so I can't say for sure that it allows purging of both
queues and topics. Even if it allows purging of topics, you'd still need to
provide a means to invoke it remotely (i.e. write your own simple REST
webapp and run it on the broker host), so simply deleting the topic via
REST sounds like the better option to me.

Tim

On Fri, Jul 28, 2017 at 3:48 AM, meghaauti <meghaauti@gmail.com> wrote:

> Hi Tim
> 1. We have certain criteria where all the messages present in the topic is
> no longer valid and new messages are exported on the same topic.
> That is the reason I want to delete all the messages on the Topic before
> new
> messages are sent.
> If it is possible to just remove the messages instead of deleting the topic
> that solution will be more acceptable.
>
> We have found a way to delete topic using AMQ REST api. Following is the
> URL
> for the same.
>
> http://localhost:8161/api/jolokia/read/org.apache.activemq:type=Broker,
> brokerName=localhost,destinationType=Topic,destinationName=Test1/
> deleteTopic
>
> 2. The subscribers are durable and will remain online during the process. I
> simply want them to stay active and wait for messages on the same topic.
>
> Megha
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.
> nabble.com/Delete-Purge-Topic-tp4728932p4729003.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

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