Search code examples
jbossjboss-eap-7

System Properties are not resolved in JBOSS EAP 7.0


I am trying to migrate from jboss-eap-6.2 to jboss-eap-7.0. I have a few system properties in standalone.xml that I've used in jboss-eap-6.2 but the same properties doesn't get resolved in eap 7.0.

 <system-properties>
        <property name="LOGIN_URL" value="https://localhost:8543/test/test.jsp"/>
       ...
       ...
       ...
 </system-properties>

I'm adding these properties under the tag only. Still it doesn't get resolved during run time when my code tries to pick it up.


Solution

  • Finally figured out why the system properties were not accessible through the application! Gotta set

    <spec-descriptor-property-replacement>
    

    tag's value to true. It is by default set to false. It will be under the sub system <subsystem xmlns="urn:jboss:domain:ee:4.0">

    Changing this to true worked for me!