On 5/22/07, warwick.mayson <[EMAIL PROTECTED]> 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/