From d2a9f7dba21a36b2f4b67e2499077a6b5c2bdfb2 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Thu, 29 Oct 2009 16:10:36 +0000 Subject: [PATCH] first cut of resolution to https://issues.apache.org/activemq/browse/AMQ-2470 - put cleanup on a fixe rate schedual git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@831008 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java b/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java index 3e18caa157..40a3264664 100755 --- a/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java +++ b/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java @@ -215,7 +215,7 @@ public class JDBCPersistenceAdapter extends DataSourceSupport implements Persist // Cleanup the db periodically. if (cleanupPeriod > 0) { - cleanupTicket = getScheduledThreadPoolExecutor().scheduleAtFixedRate(new Runnable() { + cleanupTicket = getScheduledThreadPoolExecutor().scheduleWithFixedDelay(new Runnable() { public void run() { cleanup(); }