diff options
author | wjaniszewski <wjaniszewski@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-26 11:48:24 +0000 |
---|---|---|
committer | wjaniszewski <wjaniszewski@13f79535-47bb-0310-9956-ffa450edef68> | 2009-05-26 11:48:24 +0000 |
commit | 0b2dd4c47835733b32cdf52714bf8cdc7e2b3935 (patch) | |
tree | 42708a3dfdcf7b386659fd50e3b72dba4fb71e86 /branches/sca-java-1.x/modules/binding-erlang-runtime/src/main/java/org/apache/tuscany | |
parent | 9cda7f1d4fd99777d7dea4ff707d178c16bc42b8 (diff) |
Now service thread doesn't blocks halting JVM on stop procedure
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@778663 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/binding-erlang-runtime/src/main/java/org/apache/tuscany')
-rw-r--r-- | branches/sca-java-1.x/modules/binding-erlang-runtime/src/main/java/org/apache/tuscany/sca/binding/erlang/impl/ErlangServiceBindingProvider.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/modules/binding-erlang-runtime/src/main/java/org/apache/tuscany/sca/binding/erlang/impl/ErlangServiceBindingProvider.java b/branches/sca-java-1.x/modules/binding-erlang-runtime/src/main/java/org/apache/tuscany/sca/binding/erlang/impl/ErlangServiceBindingProvider.java index c2546a4336..725c62fca0 100644 --- a/branches/sca-java-1.x/modules/binding-erlang-runtime/src/main/java/org/apache/tuscany/sca/binding/erlang/impl/ErlangServiceBindingProvider.java +++ b/branches/sca-java-1.x/modules/binding-erlang-runtime/src/main/java/org/apache/tuscany/sca/binding/erlang/impl/ErlangServiceBindingProvider.java @@ -52,6 +52,8 @@ public class ErlangServiceBindingProvider implements ServiceBindingProvider { public void start() {
try {
Thread thread = new Thread(node);
+ // prevents blocking stop procedure by service listener
+ thread.setDaemon(true);
thread.start();
} catch (Exception e) {
throw new ServiceRuntimeException(e);
|