cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1729247 - /cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java
Date Mon, 08 Feb 2016 20:37:44 GMT
Author: dkulp
Date: Mon Feb  8 20:37:44 2016
New Revision: 1729247

URL: http://svn.apache.org/viewvc?rev=1729247&view=rev
Log:
Set some failover addresses

Modified:
    cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java

Modified: cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java
URL: http://svn.apache.org/viewvc/cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java?rev=1729247&r1=1729246&r2=1729247&view=diff
==============================================================================
--- cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java (original)
+++ cxf/web/src/main/java/org/apache/cxf/cwiki/SiteExporter.java Mon Feb  8 20:37:44 2016
@@ -209,11 +209,17 @@ public class SiteExporter implements Run
             FailoverFeature failover = new FailoverFeature();
             RetryStrategy rs = new RetryStrategy();
             rs.setMaxNumberOfRetries(25);
+            List<String> alternateAddresses = new ArrayList<String>();
+            alternateAddresses.add(REST_API);
+            rs.setAlternateAddresses(alternateAddresses);
             failover.setStrategy(rs);
             JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean();
             bean.setAddress(REST_API);
+            
             bean.setServiceClass(ContentResource.class);
             List<Feature> features = new ArrayList<Feature>();
+            
+            
             features.add(failover);
             bean.setFeatures(features);
             bean.setUsername(userName);
@@ -228,6 +234,11 @@ public class SiteExporter implements Run
             FailoverFeature failover = new FailoverFeature();
             RetryStrategy rs = new RetryStrategy();
             rs.setMaxNumberOfRetries(25);
+            List<String> alternateAddresses = new ArrayList<String>();
+            alternateAddresses.add(ROOT + RPC_ROOT + apiVersion);
+            alternateAddresses.add(ROOT + RPC_ROOT + apiVersion);
+            alternateAddresses.add(ROOT + RPC_ROOT + apiVersion);
+            rs.setAlternateAddresses(alternateAddresses);
             failover.setStrategy(rs);
             
             



Mime
View raw message