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: ActiveMQ 4.1 Queue is full

2007-03-01 Thread Rob Davies
The memory model is different for ActiveMQ 4.1 in that for Queues, only small references to the Queue messages are held in memory. This means that the Queue depth can be considerably bigger than for ActiveMQ 3.2.x. However, our next major release (5.0 nee 4.2) has a more robust model in tha

ActiveMQ 4.1 Queue is full

2007-03-01 Thread manav
As many of you know, some of the previous versions of ActiveMQ, specifically that I know of, ActiveMQ 3.2.1 had 'Queue is Full' error problem where after some persistant messages are stored, the broker results in an error 'queue is full' and consequently becomes unresponsive. How is this fixed in

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

Re: [Spam: 5.0] Problem whith librairies

2007-03-01 Thread James Strachan
On 3/1/07, didyeah971 <[EMAIL PROTECTED]> wrote: Sorry but I have one more question, i can i test the web module, do i have to download each file from the from svn, because i don't find it anywhere else. that's why i'm interested in, it's the ajax connectors. thx, did I've updated the web sa

Re: [Spam: 5.0] Problem whith librairies

2007-03-01 Thread didyeah971
Sorry but I have one more question, i can i test the web module, do i have to download each file from the from svn, because i don't find it anywhere else. that's why i'm interested in, it's the ajax connectors. thx, did didyeah971 wrote: > > I just tested the code and it runs great now, thanks

Re: [Spam: 5.0] Problem whith librairies

2007-03-01 Thread didyeah971
I just tested the code and it runs great now, thanks a lot. Now i'll be able to test other ways to use it. Did didyeah971 wrote: > > almost the methods have been recognized execept in the "run" method, > org.apache.activemq.broker.impl.Main.main(args) doesn't seem to exist. I > tried with the ec

Re: [Spam: 5.0] Problem whith librairies

2007-03-01 Thread James Strachan
Damn dodgy code! :) I figured from the imports at the top of the code it wasn't using anything else in ActiveMQ. I've patched the code to remove the explicit broker creation (and used the vm://localhost transport instead). http://cwiki.apache.org/ACTIVEMQ/hello-world.html On 3/1/07, didyeah971

Re: [Spam: 5.0] Problem whith librairies

2007-03-01 Thread didyeah971
almost the methods have been recognized execept in the "run" method, org.apache.activemq.broker.impl.Main.main(args) doesn't seem to exist. I tried with the eclipse completion, and i found no package or class named broker.impl James.Strachan wrote: > > On 3/1/07, didyeah971 <[EMAIL PROTECTED]>

Re: [Spam: 5.0] Problem whith librairies

2007-03-01 Thread James Strachan
On 3/1/07, didyeah971 <[EMAIL PROTECTED]> wrote: Ok, i just saw the wiki, i compared the codes, and it seems to be the same so i copied and there is still this error and on the org.activemq.ActiveMQConnectionFactory. Maybe it takes a while to be uptdated, so i'll look later. It takes a while t

Re: [Spam: 5.0] Problem whith librairies

2007-03-01 Thread didyeah971
Ok, i just saw the wiki, i compared the codes, and it seems to be the same so i copied and there is still this error and on the org.activemq.ActiveMQConnectionFactory. Maybe it takes a while to be uptdated, so i'll look later. Anyway thx for answering so fast. Did James.Strachan wrote: > > On 3/

Re: [Spam: 5.0] Problem whith librairies

2007-03-01 Thread James Strachan
On 3/1/07, didyeah971 <[EMAIL PROTECTED]> wrote: I tested the example located here http://activemq.apache.org/hello-world.html That explains it. I thought you were using one of the examples that ship with the release. , using this version "apache-activemq-4.1.0-incubator". I don't think this

Re: [Spam: 5.0] Problem whith librairies

2007-03-01 Thread didyeah971
I tested the example located here http://activemq.apache.org/hello-world.html , using this version "apache-activemq-4.1.0-incubator". I don't think this example is from an old 3.x version, otherwise, there would be a little error on the activemq website. Actually, only the org.apache.activemq are

Re: [Spam: 5.0] Is ActiveMQMessageProducer.send thread safe?

2007-03-01 Thread Paul French
Thanks I am not to bothered about the JMS spec since I use ActiveMQ and some of its features internally to my applicaiton and so will not be switching to another JMS provider. Obviously if I did write software that allowed any choice of a JMS provider then I would need to make certain methods thr

Re: Compilation of ActiveMQ-CPP 1.1 fails under linux

2007-03-01 Thread Nathan Mittler
I've just successfully built the code both from the downloaded the tar.gz as well as a direct extract from svn. How did you get the 1.1 source? On 3/1/07, Yigal K <[EMAIL PROTECTED]> wrote: Hi, I've downloaded the new ActiveMQ-CPP and tried to compile it under linux with 'make' and recieved t

Re: Problem whith librairies

2007-03-01 Thread James Strachan
Which version are you using? The package name has been org.apache.activemq for quite some time (since version 4.x). Are you sure you're not using example programs from an old 3.x version of activemq? On 3/1/07, didyeah971 <[EMAIL PROTECTED]> wrote: I just installed ActiveMQ, i launched a produc

Re: Is ActiveMQMessageProducer.send thread safe?

2007-03-01 Thread James Strachan
On 3/1/07, Albert Strasheim <[EMAIL PROTECTED]> wrote: Hello all On Thu, 01 Mar 2007, Paul French wrote: > Is ActiveMQMessageProducer.send thread safe? You might want to check the JMS specification, but from what I remember, you can share a Connection between threads, but everything from a Ses

Problem whith librairies

2007-03-01 Thread didyeah971
I just installed ActiveMQ, i launched a producer and a consumer and everithing ran ok but when i tried to compile the helloworld example (App.java) that is on the website, the "org.activemq" is not recognized neither by eclipse nor in command line. I added it the activemq.jar (actually it's apache

Not all threads being used, system underutilized

2007-03-01 Thread drvillo
Hi all this is (hopefully finally) an optimization topic: Each message I consume takes ~30 seconds to complete, thus to increase throughput I'm trying to get as many threads as possible to process them in parallel. Right now I have configured Jencks to use 300 threads, with the following Activa

Re: Is ActiveMQMessageProducer.send thread safe?

2007-03-01 Thread Albert Strasheim
Hello all On Thu, 01 Mar 2007, Paul French wrote: > Is ActiveMQMessageProducer.send thread safe? You might want to check the JMS specification, but from what I remember, you can share a Connection between threads, but everything from a Session on down (i.e. everything you make from a Session a

Is ActiveMQMessageProducer.send thread safe?

2007-03-01 Thread Paul French
Is ActiveMQMessageProducer.send thread safe? -- View this message in context: http://www.nabble.com/Is-ActiveMQMessageProducer.send-thread-safe--tf3325927s2354.html#a9246594 Sent from the ActiveMQ - User mailing list archive at Nabble.com.