Re: Programmatically purge() a queue

2009-08-12 Thread centis
Bruce, Thanks for your reply! I've seen several examples like that the problem I am having is the "broker". I'm not using an embedded broker, the problem I'm having is getting the "broker" object. I'm poking around in the samples but I don't see an example that doesn't use an embedded broker.

Re: Programmatically purge() a queue

2009-08-11 Thread Bruce Snyder
On Tue, Aug 11, 2009 at 1:40 PM, centis wrote: > > I am trying to find an example of purging a Queue from Java.  Can someone > point me to someting besides, "Using JMX..." :)  I just need a way to clear > out the existing queues before my regression tests run. Oddly, the solution is to use JMX; ju

Re: Programmatically purge() a queue

2009-08-11 Thread Andreas Gies
hmmm, why not start the broker with the option "deleteAllMessagesOnStartup=true" for the test ? Best regards Andreas On Aug 11, 2009, at 7:40 PM, centis wrote: I am trying to find an example of purging a Queue from Java. Can someone point me to someting besides, "Using JMX..." :) I ju