diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-08 11:43:49 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-03-08 11:43:49 +0000 |
commit | a9a87f52e49b2c1d3f6007f5fdb83b4971ef2c88 (patch) | |
tree | c04f60047a40a956e170a55f52c30f9380207147 | |
parent | 72906a2a8125e38ae1d1034a20fd32945d6ab844 (diff) |
Add code to avoid a hang on exit when using Tuscany SCA 1.6 (TUSCANY-3277)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@920280 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMILauncher.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMILauncher.java b/sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMILauncher.java index b509cfef5c..81d9e19c60 100644 --- a/sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMILauncher.java +++ b/sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMILauncher.java @@ -48,5 +48,9 @@ public class CurrencyConverterRMILauncher { System.out.println("Node started - Press enter to shutdown.");
System.in.read();
node.stop();
+
+ // The following line is a workaround for TUSCANY-3277 when running
+ // on Tuscany SCA 1.6 (the JVM hangs when exiting).
+ System.exit(0);
}
}
|