Missed hard coded name replacement
This commit is contained in:
@@ -173,7 +173,7 @@ public class SimpleMessaging implements IMessaging, EventHandler<ValueEvent> {
|
|||||||
benchmarkEnabled = Boolean.parseBoolean(System.getProperty("moquette.processor.benchmark", "false"));
|
benchmarkEnabled = Boolean.parseBoolean(System.getProperty("moquette.processor.benchmark", "false"));
|
||||||
|
|
||||||
//TODO use a property to select the storage path
|
//TODO use a property to select the storage path
|
||||||
MapDBPersistentStore mapStorage = new MapDBPersistentStore(props.getProperty("persistent_store", ""));
|
MapDBPersistentStore mapStorage = new MapDBPersistentStore(props.getProperty(org.eclipse.moquette.commons.Constants.PERSISTENT_STORE_PROPERTY_NAME, ""));
|
||||||
m_storageService = mapStorage;
|
m_storageService = mapStorage;
|
||||||
m_sessionsStore = mapStorage;
|
m_sessionsStore = mapStorage;
|
||||||
|
|
||||||
@@ -183,7 +183,7 @@ public class SimpleMessaging implements IMessaging, EventHandler<ValueEvent> {
|
|||||||
//subscriptions.init(storedSubscriptions);
|
//subscriptions.init(storedSubscriptions);
|
||||||
subscriptions.init(m_sessionsStore);
|
subscriptions.init(m_sessionsStore);
|
||||||
|
|
||||||
String passwdPath = props.getProperty("password_file", "");
|
String passwdPath = props.getProperty(org.eclipse.moquette.commons.Constants.PASSWORD_FILE_PROPERTY_NAME, "");
|
||||||
String configPath = System.getProperty("moquette.path", null);
|
String configPath = System.getProperty("moquette.path", null);
|
||||||
IAuthenticator authenticator;
|
IAuthenticator authenticator;
|
||||||
if (passwdPath.isEmpty()) {
|
if (passwdPath.isEmpty()) {
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ public class Constants {
|
|||||||
public static final int DEFAULT_CONNECT_TIMEOUT = 10;
|
public static final int DEFAULT_CONNECT_TIMEOUT = 10;
|
||||||
public static final String DEFAULT_MOQUETTE_STORE_MAP_DB_FILENAME = "moquette_store.mapdb";
|
public static final String DEFAULT_MOQUETTE_STORE_MAP_DB_FILENAME = "moquette_store.mapdb";
|
||||||
public static final String DEFAULT_PERSISTENT_PATH = System.getProperty("user.home") + File.separator + DEFAULT_MOQUETTE_STORE_MAP_DB_FILENAME;
|
public static final String DEFAULT_PERSISTENT_PATH = System.getProperty("user.home") + File.separator + DEFAULT_MOQUETTE_STORE_MAP_DB_FILENAME;
|
||||||
public static final String PERSISTENT_STORE_PROPERTY_NAME = "persistence_store";
|
public static final String PERSISTENT_STORE_PROPERTY_NAME = "persistent_store";
|
||||||
public static final String PASSWORD_FILE_PROPERTY_NAME = "password_file";
|
public static final String PASSWORD_FILE_PROPERTY_NAME = "password_file";
|
||||||
public static final String PORT_PROPERTY_NAME = "port";
|
public static final String PORT_PROPERTY_NAME = "port";
|
||||||
public static final String HOST_PROPERTY_NAME = "host";
|
public static final String HOST_PROPERTY_NAME = "host";
|
||||||
|
|||||||
Reference in New Issue
Block a user