activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Is ActiveMQMessageProducer.send thread safe?
Date Thu, 01 Mar 2007 11:02:13 GMT
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/

Mime
View raw message