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: Session, MessageProducer are thread safe
Date Fri, 21 Jul 2006 14:02:55 GMT
On 7/21/06, Vishu <vkagrawall@yahoo.com> wrote:
>
> I don't know whether Session and MessageProducer are thread safe. Can I send
> messages (MessageProducer.send()) from multiple threads.

The JMS specification forbids it, you are meant to use the
Session/MessageProducer from one thread at once. Its not been heavily
tested but ActiveMQ would probably deal with it OK though (for
non-transacted sessions).

-- 

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

Mime
View raw message