diff --git a/server/eclipse-project/src/main/java/us/freeandfair/corla/persistence/Persistence.java b/server/eclipse-project/src/main/java/us/freeandfair/corla/persistence/Persistence.java index 72999515..2871d734 100644 --- a/server/eclipse-project/src/main/java/us/freeandfair/corla/persistence/Persistence.java +++ b/server/eclipse-project/src/main/java/us/freeandfair/corla/persistence/Persistence.java @@ -131,6 +131,10 @@ public static synchronized void setProperties(final Properties the_properties) { if (env.containsKey("HIBERNATE_URL")) { system_properties.setProperty("hibernate.url", env.get("HIBERNATE_URL")); } + + // Properties have changed, we need to reinitialize our DB connectors + session_info.remove(); + session_factory = null; } /**