This content has been marked as final.
Show 2 replies
-
1. Re: Clearing messages from all queues.
whitingjr May 28, 2010 12:06 PM (in response to whitingjr)Ok solved this. Rather than flush the queues the answer is to remove the undelying data files in these directories.
${data.dir:../data}/large-messages
${data.dir:../server}/data/journal
Then restart the server.
Jeremy
-
2. Re: Clearing messages from all queues.
peterj May 28, 2010 1:08 PM (in response to whitingjr)This solution works only if you are using the default hsqldb as your messaging data store (which you should not be using in production). For a general solution, use twiddle to invoke the removeAllMessages operation on the designated queue:
twiddle invoke XXX removeAllMessages
where XXX is the name of the MBean for your queue (I think this works for topics also, but i don't have a topic handy to verify it with).