You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by ENP <pr...@stc.donpac.ru> on 2006/06/14 13:28:56 UTC

Parallel message consume and produce from/to one queue

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?
--
View this message in context: http://www.nabble.com/Parallel-message-consume-and-produce-from-to-one-queue-t1785603.html#a4863210
Sent from the ActiveMQ - User forum at Nabble.com.


Re: Parallel message consume and produce from/to one queue

Posted by James Strachan <ja...@gmail.com>.
On 6/14/06, ENP <pr...@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/