-
1. Re: How to delete all messages in Topic?
adrian.brock Sep 8, 2003 1:26 PM (in response to rkbeach)The latest version allows you to clear a topic.
It also contains information about topic subscriptions,
but this is purely a html view.
Regards,
Adrian -
2. Re: How to delete all messages in Topic?
rkbeach Sep 8, 2003 2:51 PM (in response to rkbeach)
Hi Adrian,
Thanks much for your reply....
Are you referring to version 3.2.1? (I am using 3.2.1)
If so, how can one clear a Topic in 3.2.1?
Thanks much,
Srini -
3. Re: How to delete all messages in Topic?
genman Sep 8, 2003 3:15 PM (in response to rkbeach)
I know you can easily erase messages from Queues, and the mechanism should be similiar for topics. You can delete them using JMX. If you venture into the JMX console, you will see the object name and method (clear) to use for your queue.
Here is how you can construct the ObjectName:
Hashtable map = new Hashtable();
map.put("service", "Queue");
map.put("name", queue.getQueueName());
return new ObjectName("jboss.mq.destination", map); -
4. Re: How to delete all messages in Topic?
adrian.brock Sep 8, 2003 3:32 PM (in response to rkbeach)Take a look at 3.2.2RC3
Regards,
Adrian