Changing system properties of an already running system
If you change a setting via a CLI command in a running environment, it is strongly recommended also changing the configuration in the ImageMaster configuration file (configureAppServer.config), respectively! Otherwise such changes are lost if you have to reinstall the server or in case of an upgrade to a newer ImageMaster version because these measures rely on the configuration file.
In an initial configuration, any system property can be set. There is a dedicated section labeled “System Properties” in the configuration file, where you should do this. However, sometimes it can be required in practice to change such a property on the fly or just temporarily. If you want to change a system property in a running environment you can use a CLI command to add, write (write-attribute) or remove such a system property. These are exemplary CLI commands for all three cases using the system property “org.apache.cxf.logging.enabled”:
/system-property=org.apache.cxf.logging.enabled:add(value=true)
/system-property=org.apache.cxf.logging.enabled:write-attribute(name=value, value=false)
/system-property=org.apache.cxf.logging.enabled:remove
For system properties there is a dedicated section where you set values via the preceding keyword “systemProperty” in the ImageMaster configuration file (configureAppServer.config) such as the following mandatory default setting that is already present:
-
systemProperty org.apache.catalina.connector.URI_ENCODING=UTF-8
Also see: Configure ImageMaster in configureAppServer.config