How to Add System Properties

Task Summary
This task makes a system property available to the Application Servers that should use it.
  1. Locate the Appropriate XML File

    System properties can be set in the host.xml, domain.xml, and standalone.xml files.
    Change into the directory where the file is located.
    For the standalone.xml file do the following:
    cd JBOSS_HOME/standalone/configuration/
    
    For the host.xml or domain.xml files do the following:
    cd JBOSS_HOME/domain/configuration/
    
  2. Edit the XML file

    Add the top level system-properties tag to the XML file, with the subordinate property tag to list the system properties key-value pair:
    <system-properties>
       <property name="foo" value="bar"/>
       <property name="key" value="value"/>
    </system-properties>
    
Result:
Instances of Application Server now have access to the system properties.
Related Tasks: