You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by tomjmalone <th...@uk.easynet.net> on 2006/07/17 13:01:45 UTC

sharing connections across threads

I have multiple threads sending messages which are currently sharing the same
connection.  Is this a safe thing to do?  Does the ActiveMQConnectionFactory
produce connections that are thread safe?
-- 
View this message in context: http://www.nabble.com/sharing-connections-across-threads-tf1954081.html#a5358919
Sent from the ActiveMQ - User forum at Nabble.com.


Re: sharing connections across threads

Posted by James Strachan <ja...@gmail.com>.
Yes - sharing connections across threads is totally fine in JMS. You
should only use Session, MessageProducer, MessageConsumer objects by
one thread at a time though

On 7/17/06, tomjmalone <th...@uk.easynet.net> wrote:
>
> I have multiple threads sending messages which are currently sharing the same
> connection.  Is this a safe thing to do?  Does the ActiveMQConnectionFactory
> produce connections that are thread safe?
> --
> View this message in context: http://www.nabble.com/sharing-connections-across-threads-tf1954081.html#a5358919
> Sent from the ActiveMQ - User forum at Nabble.com.
>
>


-- 

James
-------
http://radio.weblogs.com/0112098/