Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Taal2015-05-24 16:04:13 -0400
committerMartin Taal2015-05-24 16:04:13 -0400
commit35fabc96fcb0bca55d2266af74e9d0c9be07621c (patch)
tree8a2a49132d19987dbed7c94c38b3375a20b42fe1
parent1f1f8e5699c92e3a5957a85541197ea32d8ea299 (diff)
downloadorg.eclipse.emf.teneo-35fabc96fcb0bca55d2266af74e9d0c9be07621c.tar.gz
org.eclipse.emf.teneo-35fabc96fcb0bca55d2266af74e9d0c9be07621c.tar.xz
org.eclipse.emf.teneo-35fabc96fcb0bca55d2266af74e9d0c9be07621c.zip
Solves issue that threads used by Teneo are not deamons and can prevent the jvm from stopping.
-rw-r--r--hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/mapping/identifier/LoggingThreadFactory.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/mapping/identifier/LoggingThreadFactory.java b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/mapping/identifier/LoggingThreadFactory.java
index 9065201e7..482c95da5 100644
--- a/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/mapping/identifier/LoggingThreadFactory.java
+++ b/hibernate/org.eclipse.emf.teneo.hibernate/src/org/eclipse/emf/teneo/hibernate/mapping/identifier/LoggingThreadFactory.java
@@ -35,6 +35,7 @@ public class LoggingThreadFactory implements ThreadFactory {
ThreadFactory defaultThreadFactory = Executors.defaultThreadFactory();
Thread thread = defaultThreadFactory.newThread(r);
thread.setUncaughtExceptionHandler(eh);
+ thread.setDaemon(true);
thread.setName(name + "-" + thread.getId());
return thread;
}

Back to the top