Re: Remove all messages from a queue

2007-03-02 Thread James Strachan
On 3/2/07, Kelly Campbell <[EMAIL PROTECTED]> wrote: One problem with Rob's method of initialization is you have to re-initialize the broker for each unit test which I'd rather not do for performance reasons. The problem with the recommended approach James mentioned in the docs (turning persiste

Re: Remove all messages from a queue

2007-03-02 Thread Kelly Campbell
One problem with Rob's method of initialization is you have to re-initialize the broker for each unit test which I'd rather not do for performance reasons. The problem with the recommended approach James mentioned in the docs (turning persistence off), is what about when you specifically want to

Re: Remove all messages from a queue

2007-03-02 Thread Christopher G. Stach II
Rob Davies wrote: > for unit tests - we often set the deleteAllMessagesOnStartup flag on the > broker > > For your case where you are using the vm://transport, create the broker > separetly in your setUp() - and set the deleteAllMessageOnStartup > property on the broker before calling start() or s

Re: Remove all messages from a queue

2007-03-02 Thread Rob Davies
for unit tests - we often set the deleteAllMessagesOnStartup flag on the broker For your case where you are using the vm://transport, create the broker separetly in your setUp() - and set the deleteAllMessageOnStartup property on the broker before calling start () or setting a transport co

Re: Remove all messages from a queue

2007-03-01 Thread James Strachan
On 3/1/07, Kelly Campbell <[EMAIL PROTECTED]> wrote: I'm trying to figure out how to do this same thing in the current codebase (4.1/4.2). Basically I just want to purge all queues at the beginning of a unit test to ensure a clean start. I have a local vm:// broker and would prefer not to go thro

Re: Remove all messages from a queue

2007-03-01 Thread James Strachan
On 5/15/06, Adrian Tarau <[EMAIL PROTECTED]> wrote: I know the utility of JMX, I use it :) But right now I don't want to activate JMX. I saw that ActiveMQ use MX4J 2.1.1(why don't use 3.0.1?) and I have already in my application MX4J 3.0.1 libraries and I remember I used 3.0.1 with a project that

Re: Remove all messages from a queue

2007-03-01 Thread Kelly Campbell
I'm trying to figure out how to do this same thing in the current codebase (4.1/4.2). Basically I just want to purge all queues at the beginning of a unit test to ensure a clean start. I have a local vm:// broker and would prefer not to go through JMX to do this. Thanks, Kelly On 5/17/06, Hiram