diff options
Diffstat (limited to 'sandbox/travelsample/launchers/policy/src/main/java')
-rw-r--r-- | sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java b/sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java index 838b9d93e5..4e16b9c072 100644 --- a/sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java +++ b/sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java @@ -28,20 +28,17 @@ import org.apache.tuscany.sca.node.SCANodeFactory; public class PolicyLauncher { public static void main(String[] args) throws Exception { - SCANode node1 = SCANodeFactory.newInstance().createSCANode(null, - locate("client"), - locate("payment")); + SCANode node1 = SCANodeFactory.newInstance().createSCANode(null, locate("client"), locate("payment")); node1.start(); - - SCANode node2 = SCANodeFactory.newInstance().createSCANode(null, - locate("creditcard")); - + + SCANode node2 = SCANodeFactory.newInstance().createSCANode(null, locate("creditcard")); + node2.start(); - + Runnable client = ((SCAClient)node1).getService(Runnable.class, "TestClient/Runnable"); client.run(); - + node1.stop(); node2.stop(); } |