You can optionally deploy the WAR file for hosted transparent
decision services.
About this task
On Tomcat, you use the execution unit (XU) as a Java™ SE component. Use the following
procedure to deploy the hosted transparent decision service WAR on
Tomcat:
Procedure
- Stop Tomcat by clicking shutdown.bat in <CATALINA_HOME>/bin
- Copy <InstallDir>/executionserver/applicationservers/tomcat8/DecisionService.war to <CATALINA_HOME>/webapps.
- In <CATALINA_HOME>/conf/server.xml,
add the following code just before the </Host> tag
closing the local host definition:
<Context path="/DecisionService" docBase="DecisionService.war" debug="0"
reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="localhost_htds_log." suffix=".txt" timestamp="true"/>
<ResourceLink name="jdbc/resdatasource" global="jdbc/resdatasource"
type="javax.sql.DataSource"/>
</Context>
- Save the file.
- If you use virtual context roots, set the ilog.rules.res.HTDS_CONTEXT parameter
to the actual context root that maps to the physical hosted transparent
decision service application. In the WEB-INF/web.xml of
the Rule Execution Server console,
change the <param-value>/DecisionService</param-value> in
the following <context-param> section:
<context-param>
<description>Hosted Transparent Decision Services context-root. Can be modified.</description>
<param-name>ilog.rules.res.HTDS_CONTEXT</param-name>
<param-value>/DecisionService</param-value>
</context-param>
For example, you could change <param-value>/DecisionService</param-value> to <param-value>/myservice</param-value>.
- Restart Tomcat and the Rule Execution Server console
for the hosted transparent decision service to function correctly.
- Set the ruleset.xmlDocumentDriverPool.maxSize ruleset
property to the appropriate value.
See Setting the ruleset.xmlDocumentDriverPool.maxSize
property.
What to do next
For information about checking whether you have deployed
the hosted transparent decision service successfully, refer to the Rule Execution Server console
online help.