summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-09-04 00:29:43 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-09-04 00:29:43 +0000
commit43abbe736d2724a239d50ff38d43560ebe697b77 (patch)
tree02e02b7c12c5bc1376bed827b304621331fd8ea3
parentf404bcfced7cb179c9e07f7273184a87b7743a11 (diff)
TUSCANY-3260 - Merging workaround provided by rfeng on the 1.5.1 branch to fix ORB shutdown
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@811190 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.x/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNameService.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNameService.java b/branches/sca-java-1.x/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNameService.java
index 77617a6c5c..74dd0fdc97 100644
--- a/branches/sca-java-1.x/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNameService.java
+++ b/branches/sca-java-1.x/modules/host-corba-jse/src/main/java/org/apache/tuscany/sca/host/corba/naming/TransientNameService.java
@@ -172,7 +172,6 @@ public class TransientNameService {
// only destroy this if we created the orb instance.
if (createdOrb != null) {
createdOrb.shutdown(false);
- createdOrb.destroy();
try {
// This is a workaround to close the sockets for SUN ORB
@@ -189,6 +188,10 @@ public class TransientNameService {
} catch (Throwable e) {
// Ignore
}
+
+ // Call destroy after close the acceptors
+ // In JDK 1.6u14 or later, destroy clean up the acceptors but it doesn't close them
+ createdOrb.destroy();
createdOrb = null;
}
}