Added 'autosave_interval' fix issue #97

This commit is contained in:
andsel
2015-11-22 16:56:40 +01:00
parent 72f628888e
commit e3b6391653
7 changed files with 34 additions and 9 deletions
@@ -69,8 +69,7 @@ public class SimpleMessaging {
public ProtocolProcessor init(IConfig props) {
subscriptions = new SubscriptionsStore();
//TODO use a property to select the storage path
m_mapStorage = new MapDBPersistentStore(props.getProperty(PERSISTENT_STORE_PROPERTY_NAME, ""));
m_mapStorage = new MapDBPersistentStore(props);
m_mapStorage.initStore();
IMessagesStore messagesStore = m_mapStorage.messagesStore();
ISessionsStore sessionsStore = m_mapStorage.sessionsStore(messagesStore);