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(); }