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: Parallel message consume and produce from/to one queue
Date Wed, 14 Jun 2006 12:34:19 GMT
On 6/14/06, ENP <prokopiev@stc.donpac.ru> wrote:
>
> Hi,
>
> Is it possible to use one connection to AMQ for parallel message consume and
> produce (3 consumer theads and 2 producer threads, for example) with one
> queue?

Yes. Strictly speaking each producer being used concurrently should be
using a separate session (though in ActiveMQ it'll probably work if
you just use one session for all publishers). For concurrent
consumption create a session per consumer - as all messages are
despatched to a session in a single thread - but you can have as many
sessions as you like per connection.

-- 

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

Mime
View raw message