activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiram Chirino" <>
Subject Re: Bug in ActiveMQ? Cannot receive message is two consumers are created
Date Thu, 24 Apr 2008 13:18:22 GMT
Look like you first consume prefetched all the messages.  For more info see:


On Wed, Apr 23, 2008 at 1:03 PM, gupabhi <> wrote:
>  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:
>  Sent from the ActiveMQ - Dev mailing list archive at



Open Source SOA

View raw message