activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: [VOTE RESULT] I can’t receive more than 2 messages simultaneously with DefaultMessageListenerContainer
Date Tue, 20 Feb 2007 07:35:28 GMT
On 2/19/07, cafe <rmilian@estudiantes.uci.cu> wrote:
>
> I have replied this in the spring forum too...
>
> Thx Strachan, following your tread I have localized where is the problem buy
> not why it happen
>
> The problem is not in the listener of which will be running multiple
> instances for consuming in a concurrent way the incoming message. I have
> proved that commenting the code inside the onMessage method and putting
> Thread.sleep(60000); with this test the message were consumed concurrently.
>
>
> Now the problem is when I attempt to send a Stream to a queue inside the
> onMessage method. When more than 2 onMessage methods begin sending Streams
> concurrently to the same Queue the transferring stop and stay in pause.
>
> What could be this?
>
> Surprisingly when there are 2 Thread sending Streams to the same queue all
> work well.
>
> Does ActiveMQ support dispatch Streams concurrently?

Yes.

Are you using separate sessions & producers for each thread?

-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message