activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r878969 - in /websites/production/activemq/content: cache/main.pageCache failover-transport-reference.html
Date Wed, 18 Sep 2013 15:23:07 GMT
Author: buildbot
Date: Wed Sep 18 15:23:07 2013
New Revision: 878969

Log:
Production update by buildbot for activemq

Modified:
    websites/production/activemq/content/cache/main.pageCache
    websites/production/activemq/content/failover-transport-reference.html

Modified: websites/production/activemq/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/activemq/content/failover-transport-reference.html
==============================================================================
--- websites/production/activemq/content/failover-transport-reference.html (original)
+++ websites/production/activemq/content/failover-transport-reference.html Wed Sep 18 15:23:07
2013
@@ -32,15 +32,6 @@
     </style>
     <![endif]-->
 
-          <link href='http://activemq.apache.org/styles/highlighter/styles/shCore.css'
rel='stylesheet' type='text/css' /> 
-      <link href='http://activemq.apache.org/styles/highlighter/styles/shThemeEclipse.css'
rel='stylesheet' type='text/css' /> 
-      <script src='http://activemq.apache.org/styles/highlighter/scripts/shCore.js' type='text/javascript'></script>

-              <script src='http://activemq.apache.org/styles/highlighter/scripts/shBrushJava.js'
type='text/javascript'></script> 
-         
-      <script type="text/javascript"> 
-        SyntaxHighlighter.defaults['toolbar'] = false; 
-        SyntaxHighlighter.all(); 
-      </script> 
     
     <title>
     Apache ActiveMQ &#8482; -- Failover Transport Reference
@@ -110,12 +101,11 @@ or<br clear="none">
 <div class="table-wrap">
 <table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"> Option Name </th><th colspan="1" rowspan="1" class="confluenceTh">
Default Value </th><th colspan="1" rowspan="1" class="confluenceTh"> Description
</th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> initialReconnectDelay
</td><td colspan="1" rowspan="1" class="confluenceTd"> 10 </td><td colspan="1"
rowspan="1" class="confluenceTd"> How long to wait before the first reconnect attempt (in
ms) </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
maxReconnectDelay </td><td colspan="1" rowspan="1" class="confluenceTd"> 30000
</td><td colspan="1" rowspan="1" class="confluenceTd"> The maximum amount of time
we ever wait between reconnect attempts (in ms) </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> useExponentialBackOff </td><td colspan="1" rowspan="1"
class="confluenceTd"> true </td><td colspan="1" rowspan="1" class="confluenceTd">
Should an exponential ba
 ckoff be used btween reconnect attempts </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> reconnectDelayExponent </td><td colspan="1"
rowspan="1" class="confluenceTd"> 2.0 </td><td colspan="1" rowspan="1" class="confluenceTd">
The exponent used in the exponential backoff attempts </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> maxReconnectAttempts </td><td colspan="1"
rowspan="1" class="confluenceTd"> -1 | 0</td><td colspan="1" rowspan="1" class="confluenceTd">
From version 5.6 onwards:  -1 is default and means retry forever, 0 means don't retry (only
try connection once but no retry). <br clear="none" class="atl-forced-newline">
 Prior to version 5.6: 0 is default and means retry forever. <br clear="none" class="atl-forced-newline">
-All versions: If set to &gt;0, then this is the maximum number of reconnect attempts
before an error is sent back to the client. <br clear="none" class="atl-forced-newline">
</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> startupMaxReconnectAttempts
</td><td colspan="1" rowspan="1" class="confluenceTd"> 0 </td><td colspan="1"
rowspan="1" class="confluenceTd"> If not 0, then this is the maximum number of reconnect
attempts before an error is sent back to the client on the first attempt by the client to
start a connection, once connected the <b>maxReconnectAttempts</b> option takes
precedence. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
randomize </td><td colspan="1" rowspan="1" class="confluenceTd"> true </td><td
colspan="1" rowspan="1" class="confluenceTd"> use a random algorithm to choose the the
URI to use for reconnect from the list provided </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> backup </td><td colspan="1" rowspan="1" 
 class="confluenceTd"> false </td><td colspan="1" rowspan="1" class="confluenceTd">
initialize and hold a second transport connection - to enable fast failover </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> timeout </td><td colspan="1" rowspan="1"
class="confluenceTd"> -1 </td><td colspan="1" rowspan="1" class="confluenceTd">
Enables timeout on send operations (in miliseconds) without interruption of reconnection process
</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> trackMessages
</td><td colspan="1" rowspan="1" class="confluenceTd"> false </td><td
colspan="1" rowspan="1" class="confluenceTd"> keep a cache of in-flight messages that will
flushed to a broker on reconnect </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> maxCacheSize </td><td colspan="1" rowspan="1" class="confluenceTd">
131072 </td><td colspan="1" rowspan="1" class="confluenceTd"> size in bytes for
the cache, if trackMessages is enabled </td></tr><tr><td colspan="1"
row
 span="1" class="confluenceTd"> updateURIsSupported </td><td colspan="1" rowspan="1"
class="confluenceTd"> true </td><td colspan="1" rowspan="1" class="confluenceTd">
Determines whether the client should accept updates to its list of known URIs from the connected
broker. <b>Added in ActiveMQ 5.4</b> </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> updateURIsURL </td><td colspan="1" rowspan="1"
class="confluenceTd"> null </td><td colspan="1" rowspan="1" class="confluenceTd">
A URL (or path to a local file)  to a text file containing a comma separated list of URIs
to use for reconnect in the case of failure. <b>Added in ActiveMQ 5.4</b> </td></tr></tbody></table>
+All versions: If set to &gt;0, then this is the maximum number of reconnect attempts
before an error is sent back to the client. <br clear="none" class="atl-forced-newline">
</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> startupMaxReconnectAttempts
</td><td colspan="1" rowspan="1" class="confluenceTd"> 0 </td><td colspan="1"
rowspan="1" class="confluenceTd"> If not 0, then this is the maximum number of reconnect
attempts before an error is sent back to the client on the first attempt by the client to
start a connection, once connected the <b>maxReconnectAttempts</b> option takes
precedence. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">
randomize </td><td colspan="1" rowspan="1" class="confluenceTd"> true </td><td
colspan="1" rowspan="1" class="confluenceTd"> use a random algorithm to choose the the
URI to use for reconnect from the list provided </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> backup </td><td colspan="1" rowspan="1" 
 class="confluenceTd"> false </td><td colspan="1" rowspan="1" class="confluenceTd">
initialize and hold a second transport connection - to enable fast failover </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> timeout </td><td colspan="1" rowspan="1"
class="confluenceTd"> -1 </td><td colspan="1" rowspan="1" class="confluenceTd">
Enables timeout on send operations (in miliseconds) without interruption of reconnection process
</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> trackMessages
</td><td colspan="1" rowspan="1" class="confluenceTd"> false </td><td
colspan="1" rowspan="1" class="confluenceTd"> keep a cache of in-flight messages that will
flushed to a broker on reconnect </td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"> maxCacheSize </td><td colspan="1" rowspan="1" class="confluenceTd">
131072 </td><td colspan="1" rowspan="1" class="confluenceTd"> size in bytes for
the cache, if trackMessages is enabled </td></tr><tr><td colspan="1"
row
 span="1" class="confluenceTd"> updateURIsSupported </td><td colspan="1" rowspan="1"
class="confluenceTd"> true </td><td colspan="1" rowspan="1" class="confluenceTd">
Determines whether the client should accept updates to its list of known URIs from the connected
broker. <b>Added in ActiveMQ 5.4</b> </td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"> updateURIsURL </td><td colspan="1" rowspan="1"
class="confluenceTd"> null </td><td colspan="1" rowspan="1" class="confluenceTd">
A URL (or path to a local file)  to a text file containing a comma separated list of URIs
to use for reconnect in the case of failure. <b>Added in ActiveMQ 5.4</b> </td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"> nested.* </td><td colspan="1" rowspan="1"
class="confluenceTd"> null </td><td colspan="1" rowspan="1" class="confluenceTd">
Extra options to add to the nested URLs. <b>Added in ActiveMQ 5.9</b> </td></tr></tbody></table>
 </div>
 
 
 
-
 <h5><a shape="rect" name="FailoverTransportReference-ExampleURI"></a>Example
URI</h5>
 
 <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent
panelContent">
@@ -199,6 +189,22 @@ Starting in version 5.3.1, redelivery or
 </div></div>
 
 <p>In this case the client will prioritize either <tt>local1</tt> or <tt>local2</tt>
brokers and (re)connect to them if they are available.</p>
+
+<h5><a shape="rect" name="FailoverTransportReference-PassingextraoptionstothenestedURLs."></a>Passing
extra options to the nested URLs.</h5>
+
+<p><font color="red"><b><em>This is new in version 5.9:</em></b></font><br
clear="none">
+You can now add options the nested URLs via options on the failover URL.  Previously, if
you wanted to detect dead connections faster you had to add the wireFormat.maxInactivityDuration=1000
option to all the nested URLs in the failover list.  For example:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[failover:(tcp://host01:61616?wireFormat.maxInactivityDuration=1000,tcp://host02:61616?wireFormat.maxInactivityDuration=1000,tcp://host03:61616?wireFormat.maxInactivityDuration=1000)]]></script>
+</div></div>
+
+<p>As of ActiveMQ 5.9, you can now do the same thing using the following URL:</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[failover:(tcp://host01:61616,tcp://host02:61616,tcp://host03:61616)?nested.wireFormat.maxInactivityDuration=1000]]></script>
+</div></div>
+
           </div>
         </td>
         <td valign="top">



Mime
View raw message