activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhawan, Vikram \(LNG-DAY\)" <vikram.dha...@lexisnexis.com>
Subject RE: multiple consumer threads in same program in STOMP issue
Date Fri, 15 Sep 2006 15:01:57 GMT
Thanks James, 

May be APR is not handling multi threading correctly. STOMP C uses apr
lib under the hood. 

I am wondering lets say both the consumer threads are on same connection
do you think that can cause this behavior?

Thanks!


Vik

-----Original Message-----
From: James Strachan [mailto:james.strachan@gmail.com] 
Sent: Friday, September 15, 2006 3:25 AM
To: activemq-dev@geronimo.apache.org
Subject: Re: multiple consumer threads in same program in STOMP issue

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