What is the loading order of the System Properties in JBoss EAP 7

Solution Unverified - Updated

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>

System property not taking effect even though it is listed on the JAVA_OPTS / process listing, etc in JBoss EAP 7 / 6

Components
Category

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.