Author: buildbot
Date: Thu Aug 1 12:48:03 2013
New Revision: 872288
Log:
Production update by buildbot for cxf
Modified:
websites/production/cxf/content/cache/docs.pageCache
websites/production/cxf/content/docs/failoverfeature.html
Modified: websites/production/cxf/content/cache/docs.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/cxf/content/docs/failoverfeature.html
==============================================================================
--- websites/production/cxf/content/docs/failoverfeature.html (original)
+++ websites/production/cxf/content/docs/failoverfeature.html Thu Aug 1
12:48:03 2013
@@ -135,7 +135,8 @@ Apache CXF -- FailoverFeature
<h1><a shape="rect" name="FailoverFeature-Failover"></a>Failover </h1>
<p>The CXF Failover feature allows to configure CXF frontend clients to retry
a call when the target endpoint becomes unavailable.<br clear="none">
-A number of retry strategies available: a client can iterate sequentially over
the alternative addresses or chose them randomly. </p>
+A number of retry strategies available: a client can iterate sequentially over
the alternative addresses or chose them randomly. <br clear="none">
+Every strategy can be configured to do a delay between selecting the
addresses.</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
<script class="theme: Default; brush: xml; gutter: false"
type="syntaxhighlighter"><![CDATA[
@@ -161,6 +162,8 @@ http://www.springframework.org/schema/ut
<property name="alternateAddresses">
<ref bean="addressList"/>
</property>
+ <!-- delay a retry for 1/10 of a second -->
+ <property name="delayBetweenRetries" value="100"/>
</bean>
<bean id="RandomAddresses"
class="org.apache.cxf.clustering.RandomStrategy">
@@ -197,6 +200,8 @@ http://www.springframework.org/schema/ut
]]></script>
</div></div>
+<p>Note, org.apache.cxf.clustering.RetryStrategy can be used to retry the
same, last address for a limited number of times, before switching to the next
address. Use RetryStrategy 'maxNumberOfRetries' property. RetryStrategy
currently uses a sequential algorithm for selecting the addresses. </p>
+
<h1><a shape="rect" name="FailoverFeature-LoadDistribution"></a>Load
Distribution</h1>
<p>Load Distributor Feature is a Failover feature which can allow the clients
to iterate over alternative addresses on every new call, irrespectively of
whether the last call has reached its target or not. It can help with the
controlling the traffic originating from CXF clients at individual servers. </p>
@@ -213,8 +218,8 @@ http://www.springframework.org/schema/ut
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd">
- <bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
-
+ <bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
+
<util:list id="addressList">
<value>http://localhost:${testutil.ports.Server.1}/services1</value>
<value>http://localhost:${testutil.ports.Server.2}/services2</value>