This content has been marked as final.
Show 5 replies
-
1. Re: How does one purge/drain a destination? (standalone)
jmesnil Sep 24, 2009 11:44 AM (in response to mr_dronski)an empty string for the filter means "no filter" and will in effect remove all the messages
-
2. Re: How does one purge/drain a destination? (standalone)
jmesnil Sep 24, 2009 11:52 AM (in response to mr_dronski)fyi, I've documented this behavior in the documentation as it was not mentioned explicitely.
hope that helps. -
3. Re: How does one purge/drain a destination? (standalone)
mr_dronski Sep 24, 2009 11:53 AM (in response to mr_dronski)Thanks Jeff, I used an empty string in jconsole, but was then looking at MessageCount, which stayed 0. Also, the remove operation always returned 0.
Now I am confused, as MessageCount always stays at 0, but it is the MessagesAdded that grows. What is the correlation between them? Any ideas why this could happen?
Thanks,
Andrew -
4. Re: How does one purge/drain a destination? (standalone)
mr_dronski Sep 24, 2009 12:05 PM (in response to mr_dronski)Nevermind the last question, I was dumb, forgot that my testcase (written way back) consumes all messages in verify phase :) Disabling it had messages stay on the queue.
-
5. Re: How does one purge/drain a destination? (standalone)
timfox Sep 24, 2009 6:25 PM (in response to mr_dronski)"jmesnil" wrote:
fyi, I've documented this behavior in the documentation as it was not mentioned explicitely.
hope that helps.
We should add an overloaded operation which does not take a filterstring as a param