activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tendlu <sur...@yahoo-inc.com>
Subject Re: Help! Missing messages in Multithreaded producer
Date Tue, 18 Sep 2007 18:56:00 GMT

You are correct. The Session was shared among threads and it was a bug in the
test case. A Session per thread solved the problem. 

Thanks a lot James.


James.Strachan wrote:
> 
> On 9/7/07, tendlu <surajn@yahoo-inc.com> wrote:
>> Not all messages(persistent) to a queue are sent to the broker if
>> messages
>> are sent from multiple threads. Each thread creates its own connection
>> and
>> session.
>>
>> Please let me know if I am missing something or is this a bug?
> 
> That sounds wrong; do you have any kind of test case by any chance?
> 
> FWIW the most common cause of concurrency issues is when folks reuse a
> session & producer in multiple threads. So long as each thread has its
> own session & producer it should be fine.
> 
> Which version are you using? Are you sure you're just not seeing
> blocked producers due to RAM exhaustion?
> http://activemq.apache.org/my-producer-blocks.html
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> 

-- 
View this message in context: http://www.nabble.com/Help%21-Missing-messages-in-Multithreaded-producer-tf4395325s2354.html#a12763661
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message