summaryrefslogtreecommitdiffstats
path: root/sandbox
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2009-08-17 21:10:46 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2009-08-17 21:10:46 +0000
commit2ad3c8bb3150165ed837a99fa4a4b14a60d59375 (patch)
tree835d77826e886b4f28092a7eac544f3677745818 /sandbox
parentd8dca4a1467682d288a04c957845072d06c7eedf (diff)
Clean up launcher code
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@805143 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox')
-rw-r--r--sandbox/travelsample/launchers/introducing-launcher/src/main/java/scatours/LaunchIntroducingNode.java23
1 files changed, 9 insertions, 14 deletions
diff --git a/sandbox/travelsample/launchers/introducing-launcher/src/main/java/scatours/LaunchIntroducingNode.java b/sandbox/travelsample/launchers/introducing-launcher/src/main/java/scatours/LaunchIntroducingNode.java
index ec3304d123..d29122c7ba 100644
--- a/sandbox/travelsample/launchers/introducing-launcher/src/main/java/scatours/LaunchIntroducingNode.java
+++ b/sandbox/travelsample/launchers/introducing-launcher/src/main/java/scatours/LaunchIntroducingNode.java
@@ -27,21 +27,16 @@ import org.apache.tuscany.sca.node.SCANodeFactory;
public class LaunchIntroducingNode {
public static void main(String[] args) throws Exception {
- try {
- SCANode node = SCANodeFactory.newInstance().createSCANode(null,
- new SCAContribution("goodvaluetrips", "../../contributions/introducing-goodvaluetrips-contribution/target/classes"),
- new SCAContribution("tuscanyscatours", "../../contributions/introducing-tuscanyscatours-contribution/target/classes"),
- new SCAContribution("client", "../../contributions/introducing-client-contribution/target/classes"));
+ SCANode node = SCANodeFactory.newInstance().createSCANode(null,
+ new SCAContribution("introducing-tours", "../../contributions/introducing-tuscanyscatours-contribution/target/classes"),
+ new SCAContribution("introducing-trips", "../../contributions/introducing-goodvaluetrips-contribution/target/classes"),
+ new SCAContribution("introducing-client", "../../contributions/introducing-client-contribution/target/classes"));
- node.start();
+ node.start();
- Runnable client = ((SCAClient)node).getService(Runnable.class, "TestClient/Runnable");
- client.run();
-
- node.stop();
-
- } catch (Throwable th) {
- th.printStackTrace();
- }
+ Runnable proxy = ((SCAClient)node).getService(Runnable.class, "TestClient/Runnable");
+ proxy.run();
+
+ node.stop();
}
}