use of org.apache.cxf.greeter_control.ControlService in project cxf by apache.
the class FailoverTest method startTarget.
protected void startTarget(String address) throws Exception {
ControlService cs = new ControlService();
control = cs.getControlPort();
updateAddressPort(control, PORT_0);
LOG.info("starting replicated target: " + address);
assertTrue("Failed to start greeter", control.startGreeter(address));
targets.add(address);
}
use of org.apache.cxf.greeter_control.ControlService in project cxf by apache.
the class ProtocolVariationsTest method initControl.
private void initControl(SpringBusFactory bf, String cfgResource) {
controlBus = bf.createBus();
BusFactory.setDefaultBus(controlBus);
ControlService cs = new ControlService();
control = cs.getControlPort();
try {
updateAddressPort(control, PORT);
} catch (Exception ex) {
// ignore
}
assertTrue("Failed to start greeter", control.startGreeter(cfgResource));
}
use of org.apache.cxf.greeter_control.ControlService in project cxf by apache.
the class ServiceInvocationAckBase method setupGreeter.
protected void setupGreeter(String cfgResource) throws NumberFormatException, MalformedURLException {
SpringBusFactory bf = new SpringBusFactory();
controlBus = bf.createBus();
BusFactory.setDefaultBus(controlBus);
ControlService cs = new ControlService();
control = cs.getControlPort();
updateAddressPort(control, getPort());
assertTrue("Failed to start greeter", control.startGreeter(cfgResource));
System.setProperty("db.name", getPrefix());
greeterBus = bf.createBus(cfgResource);
BusFactory.setDefaultBus(greeterBus);
System.clearProperty("db.name");
LOG.fine("Initialised greeter bus with configuration: " + cfgResource);
GreeterService gs = new GreeterService();
greeter = gs.getGreeterPort();
updateAddressPort(greeter, getPort());
LOG.fine("Created greeter client.");
}
Aggregations