Permalink
Browse files

Update the overview.page of fabric website

  • Loading branch information...
1 parent 24a8a81 commit bf2472289b3ebf82304b37656fa1d9c38c3396a1 @WillemJiang WillemJiang committed Oct 23, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 website/src/fabric/docs/overview.page
@@ -149,6 +149,7 @@ You can configure the fabricPath of the FabricLoadBalancerFeature for the CXF se
</bean>
<bean id="fabicLoadBalancerFeature" class="org.fusesource.fabric.cxf.FabricLoadBalancerFeature">
+ <property name="zkClient" ref="zkClient" />
<property name="fabricPath" value="simple" />
</bean>
<!-- configure the feature on the bus -->
@@ -180,6 +181,10 @@ Here you can use the CXF normal code to publish the CXF service, but you need to
// The address is not the actual address that the client will access
clientFactory.setAddress("http://someotherplace");
List<AbstractFeature> features = new ArrayList<AbstractFeature>();
+ Feature feature = new FabricFailOverFeature();
+ // you need setting the feature with zkClient and fabricPath to load the server addresses
+ ......
+ // add the instance of FabricLoadBalancerFeature into features list
features.add(feature);
// we need to setup the feature on the clientfactory
clientFactory.setFeatures(features);

0 comments on commit bf24722

Please sign in to comment.