On 3/1/07, Albert Strasheim <[EMAIL PROTECTED]> 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/

Reply via email to