aboutsummaryrefslogtreecommitdiff
path: root/id/server/moa-id-spring-initializer/src/main
diff options
context:
space:
mode:
authorThomas Lenz <tlenz@iaik.tugraz.at>2018-02-28 13:59:29 +0100
committerThomas Lenz <tlenz@iaik.tugraz.at>2018-02-28 13:59:29 +0100
commitb9e6751d60d4415dfabc986ee444e079bcac17c3 (patch)
tree27047588a3eacce2e20d4d69901a772baf57e198 /id/server/moa-id-spring-initializer/src/main
parent9d01327960b0531da64ae3ffd1b39592830dd425 (diff)
downloadmoa-id-spss-b9e6751d60d4415dfabc986ee444e079bcac17c3.tar.gz
moa-id-spss-b9e6751d60d4415dfabc986ee444e079bcac17c3.tar.bz2
moa-id-spss-b9e6751d60d4415dfabc986ee444e079bcac17c3.zip
activate postgresql solution as default for unofficial moa-id-3.3.2_postgresql releasemoa-id-3.3.2_postgresql
Diffstat (limited to 'id/server/moa-id-spring-initializer/src/main')
-rw-r--r--id/server/moa-id-spring-initializer/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthSpringInitializer.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/id/server/moa-id-spring-initializer/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthSpringInitializer.java b/id/server/moa-id-spring-initializer/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthSpringInitializer.java
index bf0273898..8ed654692 100644
--- a/id/server/moa-id-spring-initializer/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthSpringInitializer.java
+++ b/id/server/moa-id-spring-initializer/src/main/java/at/gv/egovernment/moa/id/auth/MOAIDAuthSpringInitializer.java
@@ -26,6 +26,7 @@ import at.gv.egiz.components.spring.api.SpringLoader;
import at.gv.egovernment.moa.id.commons.api.ConfigurationProvider;
import at.gv.egovernment.moa.id.commons.utils.MOAIDMessageProvider;
import at.gv.egovernment.moa.logging.Logger;
+import at.gv.egovernment.moa.util.MiscUtil;
/**
* Web application initializer
@@ -57,6 +58,13 @@ public class MOAIDAuthSpringInitializer implements WebApplicationInitializer {
@Override
public void onStartup(ServletContext servletContext) throws ServletException {
try {
+ //Workaround -> can be removed in next version
+ if (MiscUtil.isEmpty(System.getProperty("spring.profiles.active"))) {
+ Logger.info("Set System-Property to activate 'byteBased' config values");
+ System.setProperty("spring.profiles.active", "byteBasedConfig");
+
+ }
+
Logger.info("=============== Loading Config Root Context! ===============");
ApplicationContext cfgRootContext =
new ClassPathXmlApplicationContext(new String[] {