public Client() {
// The feature will try to create a zookeeper client itself by checking the system property of
// zookeeper.url and zookeeper.password
//System.getProperty("zookeeper.password", "admin");
// or we can set these option directly on the FabricLoadBalancerFeature
FabricLoadBalancerFeature feature = new FabricLoadBalancerFeature();
feature.setZooKeeperPassword("admin");
feature.setZooKeeperUrl("localhost:2181");
// Feature will use this path to locate the service
feature.setFabricPath("cxf/demo");
ClientProxyFactoryBean clientFactory = new JaxWsProxyFactoryBean();
clientFactory.setServiceClass(ClientProxyFactoryBean.class);
// The address is not the actual address that the client will access
clientFactory.setAddress("http://someotherplace");