public void distributedDomain() throws NoSuchServiceException, NoSuchDomainException, ContributionReadException, ActivationException, ValidationException {
TuscanyRuntime runtime = TuscanyRuntime.newInstance();
try {
Node node = runtime.createNode("uri:DomainCompositeTestCase");
testIt(node);
} finally { runtime.stop(); }
}
private void testIt(Node node) throws ContributionReadException, ActivationException, ValidationException {
node.installContribution("helloworld", "src/test/resources/sample-helloworld.jar", null, null);
node.startComposite("helloworld", "helloworld.composite");