Minor change, just added MapDB groovy toy script

This commit is contained in:
andsel
2015-09-16 22:21:15 +02:00
parent de642bf3e6
commit 05446ddf1a
2 changed files with 44 additions and 1 deletions
@@ -84,7 +84,7 @@ public class MapDBPersistentStore implements IMessagesStore, ISessionsStore {
LOG.error(null, ex);
throw new MQTTException("Can't create temp file for subscriptions storage [" + m_storePath + "]", ex);
}
m_db = DBMaker.newFileDB(tmpFile).make();
m_db = DBMaker.newFileDB(tmpFile).closeOnJvmShutdown().make();
}
m_retainedStore = m_db.getHashMap("retained");
m_persistentMessageStore = m_db.getHashMap("persistedMessages");