I want to create a system where ActiveMQ is used with 1 producer and multiple
concurrent consumers.
The intention is to have parallel processing by the consumers.

Requirement is that the Stomp library for .NET (Apache.NMS.Stomp) is used.

I thought using multiple sessions, setting AutoAcknowledge to True and
PrefetchPolicy to 1 would create a round robin system.
In practice this does not work as expected.

Environment:
------------
Using Apache.NMS version 1.5.1 + Apache Apache.NMS.Stomp version 1.5.4 as
managed by the NuGet Package manager in VS.NET 2013 Express.
The ActiveMQ broker is run out of the box (apache-activemq-5.11-SNAPSHOT).

Code:
------
Distilled from the code is the test program below.
Console output indicates that all messages get handled by the same consumer.
The other consumers do not get any work to do.





--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Stomp-for-NET-Multiple-Consumers-on-1-Queue-tp4701263.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to