I want Spring to check for system properties in JBoss EAP 6.2 (which uses JBoss AS 7.2) first and then properties that are located inside the jar.
I tried
<context:property-placeholder location="classpath:xxx.properties" />
But this uses the properties in the jar not the system properties from JBoss. I also tried
<context:property-placeholder location="classpath:xxx.properties" system-properties-mode="OVERRIDE" />
Which should be using the old PropertyPlaceholderConfigurer, but this also still uses the properties in the jar. I also tried to set the 3.0 (instead of 3.2) spring xsd but to no avail.
So how can I let Spring first check the properties in JBoss and then in the jar?
EDIT: I tried to replace OVERRIDE with the other options (ENVIRONMENT, NEVER and FALLBACK), but I always end up with a value defined in local properties.
After Artem Bilan's comments, i searched again (just to make sure, there are no duplicates) and found a class that loads the same properties, but within Java (Properties.load()
). This causes to override the system properties
i was trying to load via Spring.