From e8683a07a1059cbcaec39bfa50e6642f49cbbc09 Mon Sep 17 00:00:00 2001 From: Alex Rudyy Date: Tue, 11 Jun 2013 22:53:54 +0000 Subject: QPID-4914: Improve documentation for configuring queue binding in virtual host configuration file git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1492006 13f79535-47bb-0310-9956-ffa450edef68 --- .../Java-Broker-Virtual-Hosts-Configuration.xml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml b/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml index 3a83fb324d..348eb8d183 100644 --- a/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml +++ b/doc/book/src/java-broker/Java-Broker-Virtual-Hosts-Configuration.xml @@ -340,10 +340,17 @@
Queue Binding - Element routingKey is used to specify a binding key. - Also, elements bindingArgument is used to specify the binding arguments. - They have to be contained in the element having the same name as a binding key. - The following example demonstrates how to bind queue testQueue to a topic exchange + A queue can be bound to an exchange in virtual host configuration file by providing an exchange name in element exchange + within the queue configuration element having the same name as a queue. If exchange element is omitted in queue configuration + then such queue is bound to a default exchange only. With configuration file it is only possible to bind queue to a single exchange. + An element routingKey is used to specify a custom binding key. It is an optional element, and, + if it is not set then queue is bound to an exchange with a binding key equals to a queue name. Any number of binding keys can be configured. + + + Binding arguments can be set with each binding key. An element bindingArgument is used to specify a binding argument + as a name-value pair separated with equal character. Any number of binding arguments can be provided for a binding key in their own bindingArgument elements. + All of them should be contained within an element having the same name as a binding key. + The following example demonstrates how to bind queue testQueue to a default topic exchange using routing key testRoutingKey and binding arguments for message selector and no local. Queue Binding Example @@ -360,7 +367,6 @@ ]]> - Additionally, the queue is bound to the exchange with a binding key equal to the queue name.
-- cgit v1.2.1