shutdown the scheduled executer so that any scheduled tasks are canceled
and removed on stop.
This commit is contained in:
Timothy Bish 2014-11-25 14:56:19 -05:00
parent ebafd5c193
commit 51566104ab
1 changed files with 3 additions and 0 deletions

View File

@ -55,6 +55,7 @@ import org.apache.activemq.util.FactoryFinder;
import org.apache.activemq.util.IOExceptionSupport;
import org.apache.activemq.util.LongSequenceGenerator;
import org.apache.activemq.util.ServiceStopper;
import org.apache.activemq.util.ThreadPoolUtils;
import org.apache.activemq.wireformat.WireFormat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@ -336,6 +337,8 @@ public class JDBCPersistenceAdapter extends DataSourceServiceSupport implements
cleanupTicket.cancel(true);
cleanupTicket = null;
}
ThreadPoolUtils.shutdown(clockDaemon);
}
public void cleanup() {