summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample
diff options
context:
space:
mode:
authormcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2009-05-19 08:23:40 +0000
committermcombellack <mcombellack@13f79535-47bb-0310-9956-ffa450edef68>2009-05-19 08:23:40 +0000
commitb1148a76c39b01e1588edbf6f19075330bae0871 (patch)
tree3651289df52e927f4a5d7226480405043b88d0cc /sandbox/travelsample
parent8a4005b935df759cac92732f617be9f76eb3b0bf (diff)
Added requirement to press enter to shutdown the node so that the web service that it exposes can be invoked by another web client
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@776232 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample')
-rw-r--r--sandbox/travelsample/launchers/currency-converter-ws-launcher/src/main/java/scatours/LaunchNode.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/sandbox/travelsample/launchers/currency-converter-ws-launcher/src/main/java/scatours/LaunchNode.java b/sandbox/travelsample/launchers/currency-converter-ws-launcher/src/main/java/scatours/LaunchNode.java
index 4a4aa3070a..5a2bae53c0 100644
--- a/sandbox/travelsample/launchers/currency-converter-ws-launcher/src/main/java/scatours/LaunchNode.java
+++ b/sandbox/travelsample/launchers/currency-converter-ws-launcher/src/main/java/scatours/LaunchNode.java
@@ -38,13 +38,19 @@ public class LaunchNode {
"currency-converter-ws.composite",currencyContribution, currencyWSContribution);
node.start();
+ System.out.println("Quick currency converter test");
CurrencyConverter converter = ((SCAClient)node).getService(
CurrencyConverter.class, "CurrencyConverter");
System.out.println("USD -> GBP = "
+ converter.getExchangeRate("USD", "GBP"));
System.out.println("100 USD = "
+ converter.convert("USD", "GBP", 100) + "GBP");
-
+
+ System.out.println("Node started - Press enter to shutdown.");
+ System.in.read();
+
+
+
node.stop();
}
}