From activemq-commits-return-498-apmail-geronimo-activemq-commits-archive=geronimo.apache.org@geronimo.apache.org Thu Feb 02 16:36:18 2006 Return-Path: Delivered-To: apmail-geronimo-activemq-commits-archive@www.apache.org Received: (qmail 45426 invoked from network); 2 Feb 2006 16:36:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Feb 2006 16:36:15 -0000 Received: (qmail 78059 invoked by uid 500); 2 Feb 2006 16:36:00 -0000 Delivered-To: apmail-geronimo-activemq-commits-archive@geronimo.apache.org Received: (qmail 78031 invoked by uid 500); 2 Feb 2006 16:35:59 -0000 Mailing-List: contact activemq-commits-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-commits@geronimo.apache.org Received: (qmail 78021 invoked by uid 99); 2 Feb 2006 16:35:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Feb 2006 08:35:59 -0800 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 02 Feb 2006 08:35:43 -0800 Received: (qmail 44593 invoked by uid 65534); 2 Feb 2006 16:35:21 -0000 Message-ID: <20060202163521.44591.qmail@minotaur.apache.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r374430 [13/45] - /incubator/activemq/site/ Date: Thu, 02 Feb 2006 16:33:52 -0000 To: activemq-commits@geronimo.apache.org From: jstrachan@apache.org X-Mailer: svnmailer-1.0.5 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Added: incubator/activemq/site/Failover+Transport+Reference URL: http://svn.apache.org/viewcvs/incubator/activemq/site/Failover%2BTransport%2BReference?rev=374430&view=auto ============================================================================== --- incubator/activemq/site/Failover+Transport+Reference (added) +++ incubator/activemq/site/Failover+Transport+Reference Thu Feb 2 08:31:10 2006 @@ -0,0 +1,271 @@ + + + + + + + + ActiveMQ - Failover Transport Reference + + + + + + + + + + + + + + + +
+ + + + + + +
+

Overview

+ +

Community

+ +

Using ActiveMQ

+ +

Features

+ +

Connectivitiy

+ +

Utilities

+ +

External Tools

+ +

Related Projects

+ +

Support

+ +

Developers

+ +

Tools we use

+ +

Feeds

+ + + + + + + + + +
+
+
+ Site +
+ + + News +
+
+ +
+ + + + + +
+ Failover Transport Reference + + +
+
+ + +
+
+

The Failover Transport

+

The Failover transport layers reconnect logic on top of any of the other transports. This is what used to be the Reliable transport in ActiveMQ 3. It's configuration syntax allows you to specify any number of composite uris. The Failover transport randomly chooses one of the composite URI and attempts to establish a connection to it. If it does not succeed or if it subsequently fails, a new connection is established to one of the other uris in the list.

+

Configuration Syntax

+

failover:(uri1,...,uriN)?transportOptions
or
failover:uri1,...,uriN

+
Transport Options
+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Option NameDefault ValueDescription
initialReconnectDelay10How long to wait before the first reconnect attempt
maxReconnectDelay30000The maximum amount of time we ever wait between reconnect attempts
useExponentialBackOfftrueShould an exponential backoff be used btween reconnect attempts
backOffMultiplier2The exponent used in the exponential backoff attempts
maxReconnectAttempts0If not 0, then this is the maximum number of reconnect attempts before an error is sent back to the client
+

+
Example URI
+

+

+
failover:(tcp://localhost:61616,tcp://remotehost:61616)?initialReconnectDelay=100
+
+
+

+
+
+ +   +