此内容没有您所选择的语言版本。
Chapter 7. Installing the headless Decision Manager controller
You can configure Decision Server to run in managed or unmanaged mode. If Decision Server is unmanaged, you must manually create and maintain KIE containers (deployment units). If Decision Server is managed, the Decision Manager controller manages the Decision Server configuration and you interact with the Decision Manager controller to create and maintain KIE containers.
The Decision Manager controller is integrated with Decision Central. If you install Decision Central, use the Execution Server page to create and maintain KIE containers. However, if you do not install Decision Central, you can install the headless Decision Manager controller and use the REST API or the Decision Server Java Client API to interact with it.
Prerequisites
-
A Red Hat JBoss Web Server 5.0 or higher server installation is available. The base directory of the JBoss Web Server installation is referred to as
JWS_HOME. - Sufficient user permissions to complete the installation are granted.
The
rhdm-7.1-controller-jws.zipfile is downloaded. To download this file:- Click Download next to Red Hat Decision Manager 7.1.0 Add Ons on the Product Downloads page of the Red Hat Customer Portal.
-
Unzip the
rhdm-7.1.0-add-ons.zipfile. This file is in the unzipped directory.
Procedure
-
Extract the
rhdm-7.1-controller-jws.ziparchive to a temporary directory. In the following examples this directory is calledTEMP_DIR. Copy the
TEMP_DIR/rhdm-7.1-controller-jws.zip/controller.wardirectory to theJWS_HOME/tomcat/webappsdirectory.WarningEnsure the names of the Red Hat Decision Manager deployments you are copying do not conflict with your existing deployments in the Red Hat JBoss Web Server instance.
-
Remove the
.warextensions from thecontroller.warfolder. -
Copy the contents of the
TEMP_DIR/rhdm-7.1-controller-jws/SecurityPolicy/directory toJWS_HOME/bin. When asked to overwrite files, select Yes. Add the
kie-serverrole and user to theJWS_HOME/tomcat/conf/tomcat-users.xmlfile. In the following example,<USERNAME>and<PASSWORD>is a user and password combination of your choice:<role rolename="kie-server"/> <user username="<USER_NAME>" password="<PASSWORD>" roles="kie-server"/>
<role rolename="kie-server"/> <user username="<USER_NAME>" password="<PASSWORD>" roles="kie-server"/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the
JWS_HOME/tomcat/bindirectory of the instance running Decision Server, create a readablesetenv.shfile with the following content:CATALINA_OPTS="-Xmx1024m -Dorg.jbpm.server.ext.disabled=true -Dorg.jbpm.ui.server.ext.disabled=true -Dorg.jbpm.case.server.ext.disabled=true -Dorg.kie.server.controller.user=<CONTROLLER_USER> -Dorg.kie.server.controller.pwd=<CONTROLLER_PWD> -Dorg.kie.server.id=<KIE_SERVER_ID> -Dorg.kie.server.location=http://<HOST>:<PORT>/kie-server/services/rest/server -Dorg.kie.server.controller=http://<HOST>:<PORT>/controller/rest/controller"In the
JWS_HOME/tomcat/bindirectory of the instance running the headless Decision Manager controller, create a readablesetenv.shfile with the following content:CATALINA_OPTS="-Dorg.kie.server.user=<USERNAME> -Dorg.kie.server.pwd=<USER_PWD>"To start the headless Decision Manager controller, enter one of the following commands in the
JWS_HOME/tomcat/bindirectory:On Linux or UNIX-based systems:
./startup.sh
$ ./startup.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows:
startup.bat
startup.batCopy to Clipboard Copied! Toggle word wrap Toggle overflow
-
After a few minutes, review the the
JWS_HOME/tomcat/logsdirectory and correct any errors. To verify that the headless Decision Manager controller is working on Red Hat JBoss Web Server, enter the following command. In this command, replace
<CONTROLLER>and<CONTROLLER_PWD>with the values in thetomcat-users.xmlfile. The output of this command provides information about the Decision Server instance.curl -X GET "http://<HOST>:<PORT>/controller/rest/controller/management/servers" -H "accept: application/xml" -u '<CONTROLLER>:<CONTROLLER_PWD>'
curl -X GET "http://<HOST>:<PORT>/controller/rest/controller/management/servers" -H "accept: application/xml" -u '<CONTROLLER>:<CONTROLLER_PWD>'Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Alternatively, you can use the Decision Server Java API Client to access the headless Decision Manager controller.