res-setup
The res-setup Ant task provides an alternative method for you to configure or modify the Rule Execution Server installation.
- To change the persistence type: See Changing the persistence type by using an Ant task
- To enable the TCP/IP management mode: See Configuring the Rule Execution Server console for the TCP/IP management mode
- To enable usage metering: See Enabling usage metering
To run this Ant task, you call it from the Ant script file <odm_install_dir>/executionserver/bin/ressetup.xml.
res-setup element attributes
The following table describes the attributes of the Ant task elements and specifies whether they are mandatory or optional.
| Element attribute | Description | Mandatory/optional |
|---|---|---|
| compiledArchivesCache.properties | When you enable the compiled archives cache, use this parameter to specify the maximum number of compiled archives in the cache, and its path. | Optional For use with the decision engine only. The default value for maxSize is 10. By default, the compiled archives cache is disabled. You can enable it, by specifying a valid directory. Each instance of the XU must use a different path. |
| console.war.in | The path to the input Rule Execution Server console WAR file | Pair C At least one of the 4 pairs, A, B, C, or D, is required. |
| console.war.out | The path to the output Rule Execution Server console WAR file. | |
| console.ear.in | The path to the input management EAR file. | Pair D At least one of the 4 pairs, A, B, C, or D, is required. |
| console.ear.out | The path to the output management EAR file | |
| management.protocol | Set this parameter to specify the protocol for communication with Rule Execution Server runtime. The valid values are jmx or tcpip. Set the parameter to the tcpip value to enable communication outside an application server. Example: Java™ SE XU instances | jmx is the default value. If you enable the tcpip value, the JMX management mode remains enabled. You cannot disable it. |
| management.tcpip.port | When you enable the TCP/IP management mode, use this parameter to specify the port to which the management server must connect. | Optional The default value is 1883. |
| metering.api.key | The API key generated from Bluemix®. It is part of the service credentials of your IBM IBM Cloud Product Insights dashboard in Bluemix. IBM® ODM uses the API key to send the metering information securely to the correct dashboard. | Mandatory when metering.enable=true |
| metering.enable | Set this parameter to true to insert or to false to remove the metering plugin in the Decision Server configuration. | Optional |
| metering.host.name | The name of the IBM ODM server that sends the metrics. Allows you to differentiate the
servers. The host name is displayed in the IBM Cloud Product Insights dashboard. For example: myserver.com The format must follow the pattern [0-9]+(\.[0-9]+)* |
Optional |
| metering.install.directory | Installation directory of the IBM ODM server. Helps distinguish two server instances. The directory is displayed in the IBM Cloud Product Insights dashboard. | Optional For example: /opt/IBM/MyServer/MyRuntime |
| metering.instance.identifier | Identifier to distinguish emitting servers that have the same host name. | Optional For example: MyInstanceID |
| metering.send.usages | When this parameter is enabled, the usage reporting of the runtime is sent to the IBM Cloud Product Insights server. Value: true or false |
Mandatory when metering.enable=true You must set this parameter to true in order to send the runtime usage reports to your IBM Cloud Product Insights service instance. If this parameter is set to false, the metering feature is enabled but no usage reporting is sent |
| metering.server.url | Endpoint where the usage metrics are sent | Mandatory |
| metering.source.url | URL of the server that emits the metrics. It is displayed in the IBM Cloud Product Insights dashboard. | Optional |
| metering.war.in | The path to the input HTDS/Decision Runner / testing WAR file for the metering configuration | |
| metering.war.out | The path to the output HTDS/Decision Runner / testing WAR file for the metering configuration | |
| persistence.type | The persistence type:
|
Optional If you choose to define the persistence type, set the attribute to the appropriate configuration value. |
| persistence.jdbc.user | The login to use with the database connection for Java SE. | Configuration jdbc |
| persistence.jdbc.password | A password to use with the database connection for Java SE | |
| persistence.jdbc.url | The JDBC URL used to connect to the database | |
| persistence.jdbc.crypted.password.enabled | The password is encrypted in the XU configuration file. | |
| persistence.jdbc.driver | A driver implementation class to establish a connection with the database. | |
| persistence.datasource.jndi | The JNDI name of the data source. | Configuration datasource |
| persistence.file.directory | The path to the top directory that contains rulesets. | Configuration file |
| xom.persistence.type | The persistence type:
|
Optional If you choose to define the persistence type, set the attribute to the appropriate configuration value. |
| xom.persistence.jdbc.user | The login to use with the XOM database connection for Java SE | Configuration XOM jdbc The default value is false. |
| xom.persistence.jdbc.password | A password to use with the XOM database connection for Java SE. | |
| xom.persistence.jdbc.url | The JDBC URL used to connect to the XOM database. | |
| xom.persistence.jdbc.crypted.password.enabled | If you set this attribute to true, the password is encrypted in the XU configuration file for the XOM database. | |
| xom.persistence.jdbc.driver | A driver implementation class to establish a connection with the database that contains XOM resources | |
| xom.persistence.datasource.jndi | The JNDI name of the data source that contains XOM resources. | Configuration XOM datasource |
| xom.persistence.file.directory | The path to the top directory that contains XOM resources. | Configuration XOM file |
| xu.in | The path to the input XU RAR file | Pair A At least one of the 4 pairs, A, B, C, or D, is required. |
| xu.out | The path to the output XU RAR file | |
| xu.config.in | The path to the input XU ra.xml file | Pair B At least one of the 4 pairs, A, B, C, or D, is required. |
| xu.config.out | The path to the output XU ra.xml file |