summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/tutorials/travelsample/launchers
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-03-08 11:26:02 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-03-08 11:26:02 +0000
commit72906a2a8125e38ae1d1034a20fd32945d6ab844 (patch)
treeae82b6b8a5699e9a402c72d7592d8973cdfa56eb /sca-java-1.x/trunk/tutorials/travelsample/launchers
parent651da5580bc86cc95dd2e5ecd651355fbfd8d5b2 (diff)
Add code to avoid a 60-second hang when using Tuscany SCA 1.6 (TUSCANY-3475)
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@920276 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/tutorials/travelsample/launchers')
-rw-r--r--sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/scatours/payment/PaymentLauncher.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/scatours/payment/PaymentLauncher.java b/sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/scatours/payment/PaymentLauncher.java
index b1624a07bb..45df91a5e9 100644
--- a/sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/scatours/payment/PaymentLauncher.java
+++ b/sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/scatours/payment/PaymentLauncher.java
@@ -45,5 +45,9 @@ public class PaymentLauncher {
System.out.println("\n\nFailed Payment - Status = \n\n" + payment.makePaymentMember("c-1", 100.00f));
node.stop();
+
+ // The following line is a workaround for TUSCANY-3475 when running
+ // on Tuscany SCA 1.6 (the JVM waits for 60 seconds before exiting).
+ System.exit(0);
}
}