diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheScheduler.java b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheScheduler.java index 174bc1dbd..ce0128155 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheScheduler.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/DataCacheScheduler.java @@ -97,6 +97,7 @@ public class DataCacheScheduler _stop = false; if (_thread == null) { _thread = new Thread(this, _loc.get("scheduler-name").getMessage()); + _thread.setDaemon(true); _thread.start(); if (_log.isTraceEnabled()) _log.trace(_loc.get("scheduler-start", _thread.getName()));