What is the loading order of the System Properties in JBoss EAP 7
Environment
- Red Hat Enterprise Application Platform (EAP)
- 7.x
Issue
- We have configured system properties in JAVA_OPTS and also in the JBoss profile xml, which one takes priority?
Resolution
If the system property is passed on the command line or JAVA_OPTS and is also specified in the profile xml, then the profile xml value will override it.
standalone.conf
JAVA_OPTS="-Dmy.system.property=value1"
This one overrides what is in the JAVA_OPTS:
<system-properties>
<property name="my.system.property" value="value2"/>
</system-properties>
Related Solutions
SBR
Components
Category
Tags
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.