From 2ad3c8bb3150165ed837a99fa4a4b14a60d59375 Mon Sep 17 00:00:00 2001 From: nash Date: Mon, 17 Aug 2009 21:10:46 +0000 Subject: Clean up launcher code git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@805143 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/scatours/LaunchIntroducingNode.java | 23 +++++++++------------- 1 file changed, 9 insertions(+), 14 deletions(-) (limited to 'sandbox') 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(); } } -- cgit v1.2.3