...
When AMQP receiver connects to the broker, its mapped to the JMS consumer. This JMS consumer has to have appropriate prefetch size set. That prefetch size will be set from the receiving link credit if set or default value of 100 will be used. The broker will respect the credit set by the client or use default value of 1000 if client don't set it.
You can also tune a default value using prefetch transport attribute, like
Code Block |
<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600&transport.prefetch=10"/> |
Note that the same In this case, client preference will be ignored and the configured value will be used for .
You can also tune broker-side amqp receiver link that handles incoming messages. It will use credit of 1000 messages by default, but you can override this by using producerCredit property, like
Code Block |
<transportConnector name="amqp" uri="amqp://0.0.0.0:5672?maximumConnections=1000&wireFormat.maxFrameSize=104857600&transport.producerCredit=10000"/>
|
Mapping to JMS
There are three basic conversion strategies that can be used with AMQP and interoperating with the JMS API.
...