Search in sources :

Example 6 with FailoverTargetSelector

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);
}
Also used : ClusteredGreeterService(org.apache.cxf.greeter_control.ClusteredGreeterService) FailoverTargetSelector(org.apache.cxf.clustering.FailoverTargetSelector)

Aggregations

FailoverTargetSelector (org.apache.cxf.clustering.FailoverTargetSelector)6 ConduitSelector (org.apache.cxf.endpoint.ConduitSelector)4 ArrayList (java.util.ArrayList)1 AbstractStaticFailoverStrategy (org.apache.cxf.clustering.AbstractStaticFailoverStrategy)1 FailoverFeature (org.apache.cxf.clustering.FailoverFeature)1 RandomStrategy (org.apache.cxf.clustering.RandomStrategy)1 SequentialStrategy (org.apache.cxf.clustering.SequentialStrategy)1 ClusteredGreeterService (org.apache.cxf.greeter_control.ClusteredGreeterService)1