activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gupabhi <abhi.gu...@morganstanley.com>
Subject Bug in ActiveMQ? Cannot receive message is two consumers are created
Date Wed, 23 Apr 2008 17:03:53 GMT

Hi, 
    Following is what I'm  doing. 
1.  I create a connection using the ActiveMQ connectionFActory (VM).   
2.a.  I create a non transacted-session, 
2.b.  A queue from the session and then 
2.c.  I create a QueueReceiver from that session as follows: 
       requestQueueReceiver = nonTxSession.createReceiver(requestQueue); 

3.  I then use springs DefaultMessageListenerContainer to read message from
the same queue. Internally it basically creates a consumer for the queue and
reads from it.  (it does all this in a transaction) 

When doing this, even if there are messages in that queue. The consumer does
not receive any and keeps returing nulls. 

At first I could'nt figure out what the problem was. But then if I skipped
step 2.c. above, the problem disappeared. 

So, can there not be two consumers create for the same queue?  This seems
like a bug to me.  Is it? 

Thanks, 
Abhi 
-- 
View this message in context: http://www.nabble.com/Bug-in-ActiveMQ--Cannot-receive-message-is-two-consumers-are-created-tp16834714s2354p16834714.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message