[rabbitmq-discuss] multiple workers
vbernard42 at gmail.com
Tue May 31 17:13:33 BST 2011
As long as you don't access the same channel from multiple threads at
the same time, there should be no problem here.
Also, the "Work Queues" example uses a specific type of consumer, the
QueueingConsumer. You may want to subclass the DefaultConsumer
implementation in order to receive messages in a non-blocking manner.
On May 26, 7:58 pm, "Rajarshi Chakravarty" <r... at myquu.com> wrote:
> I have implemented Rabbit queues in java.
> In the "Work Queues" example given on the site, 2 programs are created and
> each runs an infinite loop.
> My question is instead of doing that, can I create 2 threads in a program
> and run an infinite loop in each thread?
> rabbitmq-discuss mailing list
> rabbitmq-disc... at lists.rabbitmq.comhttps://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
More information about the rabbitmq-discuss