JBoss configuration changed (#643782)

The way of configuring ConSol CM has been changed. The settings are not made in the configuration files anymore. Instead, new properties files which include the mandatory settings have been introduced:

They are located in the bin directory.

The configuration files have been adapted by introducing variables which can be referenced from the properties files. In addition, there is one configuration file for each database now:

You need to edit the properties file for your setup and make the mandatory settings:

In addition, you can use the properties files to override the default settings from the XML configuration file, for example logging settings. You can override all the settings which contain variables with default values in the configuration file.

Example:

You want to change the log level of the index.log file to DEBUG.

  1. Locate the respective handler in the configuration file (example from cm6-mysql.xml).

    <periodic-size-rotating-file-handler name="INDEX_FILE" autoflush="true">

    <level name="${handler.indexfile.level:INFO}"/>

    <formatter>

    <pattern-formatter pattern="%d %-5.5p [%30.-30c] [%X{username}-%X{context}-%X{sessionId}] %m%n"/>

    </formatter>

    <file relative-to="jboss.server.log.dir" path="index.log"/>

    <suffix value=".yyyy.MM.dd"/>

    <max-backup-index value="${handler.indexfile.max.backup.index:1}"/>

    <append value="true"/>

    </periodic-size-rotating-file-handler>

  2. Locate the variable for the log level.

    This is ${handler.indexfile.level:INFO}.

  3. Add an entry for this variable to the properties files, e.g. cm6-config.properties.

    # logging overrides

    handler.indexfile.level=DEBUG

These settings also affect the command to start ConSol CM. The properties file needs to be provided as -P parameter and the configuration file as -c parameter in the start command.

Example:

<JBOSS_HOME>/bin/standalone.sh -P <JBOSS_HOME>/bin/cm6-config.properties -c cm6-<DB>.xml