activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: even then odd message ordering
Date Tue, 22 May 2007 09:10:11 GMT
On 5/22/07, warwick.mayson <warwick.mayson@hp.com> wrote:
>
> Hi
>
> Thanks for the fast response!
>
> I am using activemq 4.1.1
>
> The producer, consumer and activemq conf is attached
>
> I have test class that simply loops i number of times calling
> producer.send("msg#" + i) and the trace on the consumer.onMessage() method
> displays all even numbered messages followed by all odd. The consumer
> completes processing one message before handling the next.
>
> The behavior is consistent and always occurs as described. I initially
> thought it may have been synchronization on the logging but i have retested
> persisting each message with no change in behaviour
>
> Freaky!
>
> Thanks again
>
> Warwick http://www.nabble.com/file/p10733989/ConsumerImpl.java
> ConsumerImpl.java  http://www.nabble.com/file/p10733989/ProducerImpl.java
> ProducerImpl.java  http://www.nabble.com/file/p10733989/activemq-node1.xml
> activemq-node1.xml

I don't see the code which uses yourr producer & consumer; I suspect
thats where the problem is. e.g. I don't see any code which
instantiates threads or calls these 2 classes. Any chance you're
creating 2 consumer threads or even 2 consumers?


-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message