Return-Path: X-Original-To: apmail-qpid-commits-archive@www.apache.org Delivered-To: apmail-qpid-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0605E7A16 for ; Thu, 1 Dec 2011 22:33:11 +0000 (UTC) Received: (qmail 7756 invoked by uid 500); 1 Dec 2011 22:33:10 -0000 Delivered-To: apmail-qpid-commits-archive@qpid.apache.org Received: (qmail 7736 invoked by uid 500); 1 Dec 2011 22:33:10 -0000 Mailing-List: contact commits-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@qpid.apache.org Delivered-To: mailing list commits@qpid.apache.org Received: (qmail 7729 invoked by uid 99); 1 Dec 2011 22:33:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 22:33:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2011 22:33:09 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 44D5E23888FD for ; Thu, 1 Dec 2011 22:32:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1209282 - /qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml Date: Thu, 01 Dec 2011 22:32:49 -0000 To: commits@qpid.apache.org From: kwall@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111201223249.44D5E23888FD@eris.apache.org> Author: kwall Date: Thu Dec 1 22:32:47 2011 New Revision: 1209282 URL: http://svn.apache.org/viewvc?rev=1209282&view=rev Log: QPID-3631: Document missing broker properties Modified: qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml Modified: qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml?rev=1209282&r1=1209281&r2=1209282&view=diff ============================================================================== --- qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml (original) +++ qpid/trunk/qpid/doc/book/src/Programming-In-Apache-Qpid.xml Thu Dec 1 22:32:47 2011 @@ -3009,7 +3009,7 @@ destination.topicExchange = amq.topic see below - The broker to use for this connection. In the current release, precisely one broker must be specified. + List of one or more broker addresses. @@ -3061,11 +3061,25 @@ destination.topicExchange = amq.topic failover - {'roundrobin' | 'failover_exchange'} + {'singlebroker' | 'roundrobin' | 'failover_exchange' | 'nofailover' | '<class>'} - If roundrobin is selected it will try each broker given in the broker list. - If failover_exchange is selected it connects to the initial broker given in the broker URL and will receive membership updates via the failover exchange. + + This option controls failover behaviour. The method singlebroker uses only the first broker in the list, + roundrobin will try each broker given in the broker list until a connection is established, + failover_exchange connects to the initial broker given in the broker URL and will receive membership updates + via the failover exchange. nofailover disables all retry and failover logic. Any other value is interpreted as a + classname which must implement the org.apache.qpid.jms.failover.FailoverMethod interface. + + + The broker list options retries and connectdelay (described below) determine the number of times a + connection to a broker will be retried and the the length of time to wait between successive connection attempts before moving on to + the next broker in the list. The failover option cyclecount controls the number of times to loop through the list of + available brokers before finally giving up. + + + Defaults to roundrobin if the brokerlist contains multiple brokers, or singlebroker otherwise. + @@ -3075,7 +3089,7 @@ destination.topicExchange = amq.topic Broker lists are specified using a URL in this format: - brokerlist=<transport>://<host>[:<port>](?<param>=<value>)?(&<param>=<value>)* + brokerlist=<transport>://<host>[:<port>](?<param>='<value>')(&<param>='<value>')* For instance, this is a typical broker list: @@ -3092,14 +3106,25 @@ destination.topicExchange = amq.topic A broker list can specify properties to be used when connecting to the broker, such as security options. This broker list specifies options for a Kerberos connection using GSSAPI: This broker list specifies SSL options: + + + This broker list specifies two brokers using the connectdelay and retries broker options. It also illustrates the failover connection URL + property. + + + @@ -3166,29 +3191,6 @@ amqp://guest:guest@test/test?sync_ack='t - ssl - - - Boolean - - - If ssl='true', the JMS client will encrypt the connection using SSL. - - - - - tcp_nodelay - - - Boolean - - - If tcp_nodelay='true', TCP packet - batching is disabled. - - - - sasl_protocol @@ -3222,7 +3224,7 @@ amqp://guest:guest@test/test?sync_ack='t -- - path to Keberos trust store + path to trust store @@ -3232,7 +3234,7 @@ amqp://guest:guest@test/test?sync_ack='t - Kerberos trust store password + Trust store password @@ -3242,7 +3244,7 @@ amqp://guest:guest@test/test?sync_ack='t - path to Kerberos key store + path to key store @@ -3253,7 +3255,18 @@ amqp://guest:guest@test/test?sync_ack='t -- - Kerberos key store password + key store password + + + + + ssl + + + Boolean + + + If ssl='true', the JMS client will encrypt the connection using SSL. @@ -3265,7 +3278,7 @@ amqp://guest:guest@test/test?sync_ack='t When using SSL you can enable hostname verification - by using "ssl_verify_hostname=true" in the broker + by using ssl_verify_hostname='true' in the broker URL. @@ -3280,6 +3293,51 @@ amqp://guest:guest@test/test?sync_ack='t If multiple certificates are present in the keystore, the alias will be used to extract the correct certificate. + + + retries + + + integer + + + The number of times to retry connection to each broker in the broker list. Defaults to 1. + + + + + connectdelay + + + integer + + + Length of time to wait before attempting to reconnect (in milliseconds). Defaults to 0. + + + + + connecttimeout + + + integer + + + Length of time to wait for the connection to succeed (in milliseconds). Defaults to 30000. + + + + + tcp_nodelay + + + Boolean + + + If tcp_nodelay='true', TCP packet + batching is disabled. + + @@ -3367,10 +3425,7 @@ import javax.jms.MapMessage; import javax.jms.MessageProducer; import javax.jms.Session; -import org.apache.qpid.client.AMQAnyDestination; -import org.apache.qpid.client.AMQConnection; - -import edu.emory.mathcs.backport.java.util.Arrays; +import java.util.Arrays; // !!! SNIP !!! --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:commits-subscribe@qpid.apache.org