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:[EMAIL PROTECTED] 
Sent: Friday, September 15, 2006 3:25 AM
To: [email protected]
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) <[EMAIL PROTECTED]>
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/

Reply via email to