I have the following configuration to create a connector for rabbitMQ in mule but the problem is that only one consumer is created, I was wondering if its possible to configure mule to create more than one consumer at a time.
<amqp:connector name="amqpfiledetailConnector"
host="${rabbitmq.host}"
port="${rabbitmq.port}"
username="${rabbitmq.username}"
password="${rabbitmq.password}"
activeDeclarationsOnly="false" />
I was able to achieve the multiple consumer creation using Spring framework but that means the entry point to the application will be a Java class(except if there is a way to transfer the request back to mule once the message has been read from the queue). I want to start the flow from mule so at to do other things.
Since version 3.6.0 AMQP transport supports numberOfConsumers, here is the doc reference . For example:
<amqp:connector name="amqpfiledetailConnector"
host="${rabbitmq.host}"
port="${rabbitmq.port}"
username="${rabbitmq.username}"
password="${rabbitmq.password}"
numberOfConsumers="4"
activeDeclarationsOnly="false" />
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.