Description of problem: The "Configuration" property (config internally) specifies what configuration the AS7 server runs with. This property is writable and therefore setting it should have effect on the server. Version-Release number of selected component (if applicable): 4.4.0-SNAPSHOT How reproducible: always Steps to Reproduce: 1. Run AS7 with bin/standalone.sh 2. Let RHQ discover it, import it 3. In the connection settings of the server, change "Configuration" to standalone-ha.xml 4. Invoke the "restart" operation on the server Actual results: The server runs with the default configuration, not standalone-ha.xml (this can be checked by examining output of): grep 'sun.java.command' $AS7_HOME/standalone/log/boot.log Expected results: The configuration should be respected Additional info:
[master http://git.fedorahosted.org/git?p=rhq/rhq.git;a=commitdiff;h=a6ac574] removes the config, hostConfig, and domainConfig plugin config props, and replaces them with serverConfig, hostConfig, and domainConfig traits. Traits are more appropriate than plugin config props, because the values can change if the user restarts the server and specifies different config file names, and a plugin config cannot be updated by the plugin discovery component once a Resource has been imported. To change a Server's config file name via the RHQ GUI: 1) Update the value of the 'startScriptArgs' conn prop (e.g. append --server-config=standalone-full.xml to it) 2) Execute the Restart operation to restart the server with the new args. Within an hour, you should see the value of the serverConfig trait change to "standalone-full.xml".
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=26a25e8 fixes a bug where a null value was being returned for the "config-file" ("Server Config") trait.