diff options
| author | Alex Rudyy <orudyy@apache.org> | 2013-06-07 22:42:51 +0000 |
|---|---|---|
| committer | Alex Rudyy <orudyy@apache.org> | 2013-06-07 22:42:51 +0000 |
| commit | 5e23db780c51e80da6f06ffee3ee53ff12c6851c (patch) | |
| tree | e104c043366d4d5e0b42c2df093057d854abff07 /qpid/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml | |
| parent | c5e9a0913d3e4e13d69b9e5ea18625183772b5c5 (diff) | |
| download | qpid-python-5e23db780c51e80da6f06ffee3ee53ff12c6851c.tar.gz | |
QPID-4914: Document how to bind queues to exchanges
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1490857 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml')
| -rw-r--r-- | qpid/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/qpid/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml b/qpid/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml index 0d1e3f8f5c..3a83fb324d 100644 --- a/qpid/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml +++ b/qpid/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml @@ -338,6 +338,31 @@ </section> </section> + <section role="h2" id="Java-Broker-Virtual-Host-Binding-Queue"> + <title>Queue Binding</title> + <para>Element <emphasis>routingKey</emphasis> is used to specify a binding key. + Also, elements <emphasis>bindingArgument</emphasis> is used to specify the binding arguments. + They have to be contained in the element having the same name as a binding key.</para> + <para>The following example demonstrates how to bind queue <emphasis>testQueue</emphasis> to a topic exchange + using routing key <emphasis>testRoutingKey</emphasis> and binding arguments for message selector and no local.</para> + <example> + <title>Queue Binding Example</title> + <programlisting><![CDATA[<queue> + <name>testQueue</name> + <testQueue> + <exchange>amq.topic</exchange> + <routingKey>testRoutingKey</routingKey> + <testRoutingKey> + <bindingArgument>x-filter-jms-selector=application='app1'</bindingArgument> + <bindingArgument>x-qpid-no-local=</bindingArgument> + </testRoutingKey> + </testQueue> +</queue>]]> + </programlisting> + </example> + <para>Additionally, the queue is bound to the exchange with a binding key equal to the queue name.</para> + </section> + <section role="h2" id="Java-Broker-Virtual-Host-Configure-Flow-Control"> <title>Configuring of Producer Flow Control</title> <para>Flow control capacity and flow resume capacity are required to set on a queue or virtual host to enable Producer flow control.</para> |
