diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-13 07:30:43 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-13 07:30:43 +0000 |
commit | 93b2330ad23ba550ba6d50fdce2f79a34cca7477 (patch) | |
tree | adb9d5d1acd2e60fc37a2e716ca5651fa0f6717c /sandbox/travelsample/launchers/policy/src | |
parent | e89f006b6e3c1d7ffdb6d771e8b20af16611e096 (diff) |
Update launchers/policy for consistency with other launchers
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@814273 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/launchers/policy/src')
-rw-r--r-- | sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java (renamed from sandbox/travelsample/launchers/policy/src/main/java/scatours/LaunchPolicyNode.java) | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/sandbox/travelsample/launchers/policy/src/main/java/scatours/LaunchPolicyNode.java b/sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java index fc84206c46..c55c8d4c13 100644 --- a/sandbox/travelsample/launchers/policy/src/main/java/scatours/LaunchPolicyNode.java +++ b/sandbox/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java @@ -24,29 +24,24 @@ import org.apache.tuscany.sca.node.SCAContribution; import org.apache.tuscany.sca.node.SCANode; import org.apache.tuscany.sca.node.SCANodeFactory; -public class LaunchPolicyNode { +public class PolicyLauncher { public static void main(String[] args) throws Exception { - try { - SCANode node1 = SCANodeFactory.newInstance().createSCANode(null, - new SCAContribution("client", "../../contributions/policy-client/target/classes"), - new SCAContribution("payment", "../../contributions/payment-java-policy/target/classes")); + SCANode node1 = SCANodeFactory.newInstance().createSCANode(null, + new SCAContribution("client", "../../contributions/policy-client/target/classes"), + new SCAContribution("payment", "../../contributions/payment-java-policy/target/classes")); - node1.start(); - - SCANode node2 = SCANodeFactory.newInstance().createSCANode(null, - new SCAContribution("creditcard", "../../contributions/creditcard-payment-jaxb-policy/target/classes")); - - node2.start(); - - Runnable client = ((SCAClient)node1).getService(Runnable.class, "TestClient/Runnable"); - client.run(); - - node1.stop(); - node2.stop(); - - } catch (Throwable th) { - th.printStackTrace(); - } + node1.start(); + + SCANode node2 = SCANodeFactory.newInstance().createSCANode(null, + new SCAContribution("creditcard", "../../contributions/creditcard-payment-jaxb-policy/target/classes")); + + node2.start(); + + Runnable client = ((SCAClient)node1).getService(Runnable.class, "TestClient/Runnable"); + client.run(); + + node1.stop(); + node2.stop(); } } |