Node node3 = NodeFactory.newInstance().createNode(URI.create("uri:default"),
"org/apache/tuscany/sca/itest/interfaces/match/distributed/MatchDistributedClientClient.composite",
contributions);
node3.start();
SCAClientFactory clientFactory = SCAClientFactory.newInstance(URI.create("default"));
ClientComponent clientClient = clientFactory.getService(ClientComponent.class, "DistributedClientClientComponent");
ParameterObject po = new ParameterObject();
try {
String response = clientClient.foo1(po);
Assert.assertEquals("AComponent", response);
} catch (ServiceRuntimeException ex){
Assert.fail("Unexpected exception with foo " + ex.toString());
}
// Make an SCAClient point across VMs to a component that has callback services
ClientComponent client = clientFactory.getService(ClientComponent.class, "DistributedClientComponent");
try {
String response = client.foo1(po);
Assert.assertEquals("AComponent", response);
} catch (ServiceRuntimeException ex){