diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-23 21:49:44 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-23 21:49:44 +0000 |
commit | 21a9757e2c403261ffbc509afae1c8e81aa2f5d8 (patch) | |
tree | f67ea7272ecb5f41958a27590005c41fc52936ba /sca-java-1.x/branches/sca-java-1.6.1/samples | |
parent | 271eb9cc745d3690aaa38004cc0657e12b4b7975 (diff) |
Add code to avoid a hang on exit with Tuscany SCA 1.6.1 (workaround for TUSCANY-3277)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1000642 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-1.x/branches/sca-java-1.6.1/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/server/CalculatorServer.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6.1/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/server/CalculatorServer.java b/sca-java-1.x/branches/sca-java-1.6.1/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/server/CalculatorServer.java index c6a230fcb4..a4dbeaecb0 100644 --- a/sca-java-1.x/branches/sca-java-1.6.1/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/server/CalculatorServer.java +++ b/sca-java-1.x/branches/sca-java-1.6.1/samples/spring-bigbank-calculator/src/main/java/bigbank/calculator/server/CalculatorServer.java @@ -45,6 +45,10 @@ public class CalculatorServer { node.stop(); System.out.println("Bye"); + + // The following line is a workaround for TUSCANY-3277 when running + // on Tuscany SCA 1.6.1 (the JVM hangs when exiting). + System.exit(0); } } |