activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakki <>
Subject Parallel calls from 1 consumer to provider
Date Fri, 16 Dec 2016 18:05:51 GMT
I am developing a C#.Net windows service that uses Apache.NMS.ActiveMQ. In
this design i have multiple consumers and 1 provider. each consumer has to
access multiple messages from queue and process it parallely.
ex: I have 100 messages in a queue. 2 consumers are polling the same queue.
1st consumer has to get 10messages  and another 10 messages for 2nd consumer
and in each consumer i create multiple threads to handle the messages like
call webservice for each message. but i am stuck with only 1 message for a
consumer it is accessed sequentially but not parallely.
Could you please provide a sample of code?

View this message in context:
Sent from the ActiveMQ - Dev mailing list archive at

View raw message