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: multiple consumer threads in same program in STOMP issue
Date Fri, 15 Sep 2006 07:24:36 GMT
It could be the stomp c client doesn't do multi threaded consumption
too well. You might wanna take a peek at how the consumption code
works

On 9/14/06, Dhawan, Vikram (LNG-DAY) <vikram.dhawan@lexisnexis.com> wrote:
> Hi,
>
>
>
> I am running into a strange issue, I created a consumer program using
> STOMP C which actually creates two separate consumer threads and both
> threads are reading from the same queue in the AMQ server using their
> own selectors on a header property.
>
>
>
> I was expecting that each thread will keep on consuming messages those
> who satisfy the selector conditions. But what happening here is at a
> time only one consumer thread is able to get its messages, another one
> just hangs. If I call disconnect in the thread which is working then
> only the hanged thread starts getting its messages.
>
>
>
> I will appreciate any explanation.
>
>
>
> Thanks!
>
>
>
> Vik
>
>
>
>
>


-- 

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

Mime
View raw message