allow embedded broker with kahaDB to exit without stop - make writer threads Daemon

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@814649 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary Tully 2009-09-14 14:04:19 +00:00
parent 8ed1589312
commit 039a15fc13
2 changed files with 2 additions and 0 deletions

View File

@ -245,6 +245,7 @@ public class MessageDatabase {
} }
} }
}; };
checkpointThread.setDaemon(true);
checkpointThread.start(); checkpointThread.start();
recover(); recover();
} }

View File

@ -1109,6 +1109,7 @@ public class PageFile {
} }
}; };
writerThread.setPriority(Thread.MAX_PRIORITY); writerThread.setPriority(Thread.MAX_PRIORITY);
writerThread.setDaemon(true);
writerThread.start(); writerThread.start();
} }
} }