activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
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 <> 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.



View raw message