activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul French <paul.fre...@frenchiesystems.com>
Subject Re: [Spam: 5.0] Is ActiveMQMessageProducer.send thread safe?
Date Thu, 01 Mar 2007 11:41:31 GMT

Thanks

I am not to bothered about the JMS spec since I use ActiveMQ and some of its
features internally to my applicaiton and so will not be switching to
another JMS provider. Obviously if I did write software that allowed any
choice of a JMS provider then I would need to make certain methods thread
safe and adhere to the JMS spec.

I will assume ActiveMQ messageProducer.send method is thread safe.

Cheers


James.Strachan wrote:
> 
> On 3/1/07, Albert Strasheim <13640887@sun.ac.za> wrote:
>> Hello all
>>
>> On Thu, 01 Mar 2007, Paul French wrote:
>>
>> > Is ActiveMQMessageProducer.send thread safe?
>>
>> You might want to check the JMS specification, but from what I remember,
>> you can share a Connection between threads, but everything from a
>> Session on down (i.e. everything you make from a Session and the Session
>> itself), should be used in the same thread.
> 
> Agreed - in JMS terms you're not really meant to use a
> session/producer/consumer from multiple threads at the same time.
> Though I've often used the producer/session to send messages
> concurrenly - typically ActiveMQ will do the right thing.
> 
> -- 
> 
> James
> -------
> http://radio.weblogs.com/0112098/
> 
> 

-- 
View this message in context: http://www.nabble.com/Is-ActiveMQMessageProducer.send-thread-safe--tf3325927s2354.html#a9248034
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message