activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r814649 - in /activemq/trunk: activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java kahadb/src/main/java/org/apache/kahadb/page/PageFile.java
Date Mon, 14 Sep 2009 14:04:20 GMT
Author: gtully
Date: Mon Sep 14 14:04:19 2009
New Revision: 814649

URL: http://svn.apache.org/viewvc?rev=814649&view=rev
Log:
allow embedded broker with kahaDB to exit without stop - make writer threads Daemon

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
    activemq/trunk/kahadb/src/main/java/org/apache/kahadb/page/PageFile.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java?rev=814649&r1=814648&r2=814649&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
Mon Sep 14 14:04:19 2009
@@ -245,6 +245,7 @@
 	                }
 	            }
 	        };
+	        checkpointThread.setDaemon(true);
 	        checkpointThread.start();
             recover();
 		}

Modified: activemq/trunk/kahadb/src/main/java/org/apache/kahadb/page/PageFile.java
URL: http://svn.apache.org/viewvc/activemq/trunk/kahadb/src/main/java/org/apache/kahadb/page/PageFile.java?rev=814649&r1=814648&r2=814649&view=diff
==============================================================================
--- activemq/trunk/kahadb/src/main/java/org/apache/kahadb/page/PageFile.java (original)
+++ activemq/trunk/kahadb/src/main/java/org/apache/kahadb/page/PageFile.java Mon Sep 14 14:04:19
2009
@@ -1109,6 +1109,7 @@
                     }
                 };
                 writerThread.setPriority(Thread.MAX_PRIORITY);
+                writerThread.setDaemon(true);
                 writerThread.start();
             }
         }



Mime
View raw message