CMRF
This section describes how to install and set up the CMRF, which is required for using CM/EBIA and the data warehouse.
Please perform the following steps:
- Review the system requirements, see System requirements
- Prepare the database, see Setting up the database.
- Install the CMRF
- Review the optional settings for MySQL
Installing the CMRF
There are two options for installing the CMRF:
- Standalone mode: Execute the CMRF as a standalone Java application on the ConSol CM server machine or another server machine.
- Overlay mode: Deploy the CMRF in the same application server as ConSol CM.
- Standalone
- Overlay
Configuring the database connection
The database connection needs to be configured on both the ConSol CM and the CMRF side.
ConSol CM side
The database connection is configured in the cm6-config.properties
file in the application server where ConSol CM runs:
- Uncomment the line for the CMRF datasource in the
cm6-config.properties
file located in<JBOSS_HOME>\bin
and provide the settings for your database:
- cmrf.datasource.url: URL of the CMRF datasource.
Example values:
- PostgreSQL: jdbc:postgresql://localhost:5432/cmrf
- MySQL 5: jdbc:mysql://localhost/cmrf?serverTimezone=Europe/Berlin
- MySQL 8: jdbc:mysql://localhost/cmrf?characterEncoding=UTF-8&serverTimezone=Europe/Berlin
- Microsoft SQL Server: jdbc:sqlserver://localhost:1433;databaseName=cmrf
- Oracle: jdbc:oracle:thin:@localhost:1521/SERVICE_NAME
- cmrf.datasource.username: Name of the database user for CMRF
- cmrf.datasource.password: Password of the database user for CMRF
CMRF side
The database connection is configured in the cmrf.properties
file. This file needs to be saved in the same location from where the cmrf-standalone-<CM_VERSION>.jar
is started.
- Uncomment the line with the JDBC connection for your database system, starting with
spring.datasource.url
. - Enter the URL of your datasource
Example values:
- PostgreSQL: jdbc:postgresql://localhost/cmrf
- MySQL: jdbc:mysql://localhost/cmrf
- Microsoft SQL Server: jdbc:sqlserver://localhost;databaseName=cmrf
- Oracle: jdbc:oracle:thin:@localhost:1521/SERVICE_NAME
- Provide the username and password:
- spring.datasource.username: Name of the database user for CMRF
- spring.datasource.password: Password of the database user for CMRF
If needed, you can add settings to override the default logging configuration to this file.
Starting the CMRF
You need to start both the ConSol CM server and the CMRF server.
ConSol CM server
Run the following commands to start the application server. Alternatively you can configure it to run as a service (similar to autostart of ConSol CM).
Example start command:
- Windows
- Linux
<JBOSS_HOME>\bin\standalone.bat -P <JBOSS_HOME>\bin\cm6-config.properties -c cm6-dwh-<DB>.xml
<JBOSS_HOME>/bin/standalone.sh -P <JBOSS_HOME>/bin/cm6-config.properties -c cm6-dwh-<DB>.xml
Replace cm6-dwh-<DB>.xml
with the ConSol CM configuration file for your database:
cm6-dwh-postgresql.xml
for PostgreSQLcm6-dwh-mysql-5.xml
for MySQL 5cm6-dwh-mysql-8.xml
for MySQL 8cm6-dwh-mssql.xml
for Microsoft SQL Servercm6-dwh-oracle.xml
for Oracle
CMRF application
Run the following command to start the CMRF:
java -jar cmrf-standalone-<version>.jar
On MySQL, you need to provide the path to the MySQL driver in the start command. In the following example, the connector is saved in the same directory from which the application is started:
java -Dloader.path=mysql-connector-java-8.0.22.jar -jar cmrf-standalone-<version>.jar
Installing the CMRF
- Copy the
cmrf-<CM_VERSION>.war
file to<JBOSS_HOME>/standalone/deployments
. - Uncomment the line for the CMRF datasource in the
cm6-config.properties
file located in<JBOSS_HOME>\bin
and provide the settings for your database:- cmrf.datasource.url: URL of the transactional CMRF datasource.
Example values:
- PostgreSQL: jdbc:postgresql://localhost:5432/cmdatabase
- MySQL 5: jdbc:mysql://localhost/cmdatabase?serverTimezone=Europe/Berlin
- MySQL 8: jdbc:mysql://localhost/cmdatabase?characterEncoding=UTF-8&serverTimezone=Europe/Berlin
- Microsoft SQL Server: jdbc:sqlserver://localhost:1433;databaseName=cmdatabase
- Oracle: jdbc:oracle:thin:@localhost:1521/SERVICE_NAME
- cmrf.datasource.username: Name of the database user for CMRF
- cmrf.datasource.password: Password of the database user for CMRF
- cmrf.datasource.url: URL of the transactional CMRF datasource.
Example values:
Starting the server
Run the following commands to start the application server. Alternatively you can configure it to run as a service (similar to autostart of ConSol CM).
Example start command:
- Windows
- Linux
<JBOSS_HOME>\bin\standalone.bat -P <JBOSS_HOME>\bin\cm6-config.properties -c cm6-dwh-<DB>.xml
<JBOSS_HOME>/bin/standalone.sh -P <JBOSS_HOME>/bin/cm6-config.properties -c cm6-dwh-<DB>.xml
Replace cm6-dwh-<DB>.xml
with the ConSol CM configuration file for your database:
cm6-dwh-postgresql.xml
for PostgreSQLcm6-dwh-mysql-5.xml
for MySQL 5cm6-dwh-mysql-8.xml
for MySQL 8cm6-dwh-mssql.xml
for Microsoft SQL Servercm6-dwh-oracle.xml
for Oracle
Optional settings
Optional settings are made using Java system properties which are provided as -D
parameters to the JAVA_OPTS
variable at startup. The following command can be used to set the Java properties:
- Windows
- Linux
set JAVA_OPTS="%JAVA_OPTS% -D<option>=<value>"
set JAVA_OPTS="$JAVA_OPTS -D<option>=<value>"
Truncation of text fields (MySQL only)
On MySQL, the values of data fields of the type Text (string) are truncated to avoid exceeding the row size limit of MySQL (relevant when a field group contains several text fields to be transferred). By default, only the first 512 characters of the field values are written to the database.
You can modify the number of characters by adding the property cmrf.mysql.truncate.string
to the start command of the CMRF, e.g.:
-Dcmrf.mysql.truncate.string=256
Next steps
Once the CMRF is up and running, you need to enable the DWH in the Web Admin Suite, see ConSol CM Administrator Manual.