use of org.apache.cxf.clustering.FailoverTargetSelector in project cxf by apache.
the class FailoverTest method setupGreeter.
protected void setupGreeter() throws Exception {
ClusteredGreeterService cs = new ClusteredGreeterService();
// REVISIT: why doesn't the generic (i.e. non-Port-specific)
// Service.getPort() load the <jaxws:client> configuration?
greeter = cs.getReplicatedPortA();
updateAddressPort(greeter, PORT_A);
assertTrue("unexpected conduit selector: " + ClientProxy.getClient(greeter).getConduitSelector().getClass().getName(), ClientProxy.getClient(greeter).getConduitSelector() instanceof FailoverTargetSelector);
updateWsdlExtensors("9051", PORT_A);
updateWsdlExtensors("9052", PORT_B);
updateWsdlExtensors("9053", PORT_C);
updateWsdlExtensors("9055", PORT_E);
}
Aggregations