Installing and configuring Decision Server on Oracle WebLogic Server
Abstract
Preface Copy linkLink copied to clipboard!
As a system administrator, you can configure your Oracle WebLogic Server for Red Hat Decision Server and install Decision Server on that Oracle server instance.
Prerequisites
- An Oracle WebLogic Server instance version 12.2.1.3.0 or later is installed. For complete installation instructions, see the Oracle WebLogic Server product page.
-
You have access to the Oracle WebLogic Server Administration Console, usually at
http://<HOST>:7001/console.
Chapter 1. Decision Server Copy linkLink copied to clipboard!
Decision Server is the server where the rules and other artifacts for Red Hat Decision Manager are stored and run. Decision Server is a standalone built-in component that can be used to instantiate and execute rules through interfaces available for REST, Java Message Service (JMS), or Java client-side applications, and Red Hat Business Optimizer functionality through solvers.
Created as a web deployable WAR file, Decision Server can be deployed on any web container. The current version of the Decision Server is included with default extensions for both Red Hat Decision Manager and Red Hat Process Automation Manager.
Decision Server has a low footprint with minimal memory consumption and therefore can be deployed easily on a cloud instance. Each instance of this server can open and instantiate multiple containers, which enables you to execute multiple rule services in parallel.
Decision Server can be integrated with other application servers, such as Oracle WebLogic Server or IBM WebSphere Application Server, to streamline Red Hat Decision Manager application management.
Chapter 2. Oracle WebLogic Server Copy linkLink copied to clipboard!
Oracle WebLogic Server is a Java EE application server that provides a standard set of APIs for creating distributed Java applications that can access a wide variety of services, such as databases, messaging services, and connections to external enterprise systems. User clients access these applications using web browser clients or Java clients.
Chapter 3. Installing and running Oracle WebLogic Server Copy linkLink copied to clipboard!
Oracle WebLogic Server must be installed and running for you to apply many of the configurations that accommodate Decision Server. This section describes how to install and start Oracle WebLogic Server in a standalone Oracle WebLogic Server domain.
For the most up-to-date and detailed installation instructions, see the Oracle WebLogic Server product page.
If you are already running an instance of Oracle WebLogic Server that uses the same listener port as the one to be used by the server you are starting, you must stop the first server before starting the second server.
Procedure
- Download Oracle WebLogic Server 12.2.1.3.0 or later from the Oracle WebLogic Server Downloads page.
- Sign in to the target system and verify that a certified JDK already exists on your system. The installer requires a certified JDK. For system requirements, see Oracle Fusion Middleware Systems Requirements and Specifications. To download the JDK, see About JDK Requirements for an Oracle Fusion Middleware Installation.
- Go to the directory where you downloaded the installation program.
Launch the installation program by running
java -jarfrom the JDK directory on your system. See the following examples:On UNIX-based operating systems:
/home/Oracle/jdk/jdk1.8.0_131/bin/java -jar fmw_12.2.1.3.0_wls_generic.jar
/home/Oracle/jdk/jdk1.8.0_131/bin/java -jar fmw_12.2.1.3.0_wls_generic.jarCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows operating systems:
C:\Program Files\Java\jdk1.8.0_131\bin\java -jar fmw_12.2.1.3.0_wls_generic.jar
C:\Program Files\Java\jdk1.8.0_131\bin\java -jar fmw_12.2.1.3.0_wls_generic.jarCopy to Clipboard Copied! Toggle word wrap Toggle overflow Be sure to replace the JDK location in these examples with the actual JDK location on your system.
- Follow the installation wizard prompts to complete the installation.
After the installation is complete, navigate to the domain directory in the command terminal,
WLS_HOME/user_projects/<DOMAIN_NAME>. For example:WLS\user_projects\mydomain
WLS\user_projects\mydomainCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enter one of the following commands to start Oracle WebLogic Server:
On UNIX-based operating systems:
startWebLogic.sh
startWebLogic.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows operating systems:
startWebLogic.cmd
startWebLogic.cmdCopy to Clipboard Copied! Toggle word wrap Toggle overflow The startup script displays a series of messages, and finally displays a message similar to the following:
<Dec 8, 2017 3:50:42 PM PDT> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode>
<Dec 8, 2017 3:50:42 PM PDT> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Open the following URL in a web browser:
http://<HOST>:<PORT>/console
http://<HOST>:<PORT>/consoleCopy to Clipboard Copied! Toggle word wrap Toggle overflow <HOST>is the system name or IP address of the host server.<PORT>is the address of the port on which the host server is listening for requests (7001 by default).For example, to start the Administration Console for a local instance of Oracle WebLogic Server running on your system, enter the following URL in a web browser:
http://localhost:7001/console/
http://localhost:7001/console/Copy to Clipboard Copied! Toggle word wrap Toggle overflow If you started the Administration Console using secure socket layer (SSL), you must add
safterhttp, as follows:https://<HOST>:<PORT>/console- When the login page of the WebLogic Administration Console appears, enter your administrative credentials.
Chapter 4. Configuring Oracle WebLogic Server for Decision Server Copy linkLink copied to clipboard!
Before you deploy Decision Server with Oracle WebLogic Server, you must configure system properties, security settings, JMS requirements, and other properties on Oracle WebLogic Server. These configurations promote an optimal integration with Decision Server.
Prerequisites
- Oracle WebLogic Server is installed and running.
- You are logged in to the WebLogic Administration Console.
4.1. Configuring the Decision Server group and users Copy linkLink copied to clipboard!
You must assign users to a kie-server group in the WebLogic Administration Console to enable the container-managed authentication mechanisms in Oracle WebLogic Server.
Procedure
- In the WebLogic Administration Console, click Security Realms.
- Choose your desired security realm or click New to create a new security realm.
-
Navigate to Users and Groups → Groups → New and create the
kie-servergroup. - Navigate to Users → New and create a new user.
Enter a user, such as
server-user, and a password for this new user and click OK.ImportantMake sure that the selected user name does not conflict with any known title of a role or a group. For example, if there is a role called
kie-server, then do not create a user with the user namekie-server.- Click the newly created user, then return to the Groups tab.
-
Use the selection tool to move the
kie-servergroup from the Available field to the Chosen field, and click Save.
4.2. Configuring Java Message Service (JMS) Copy linkLink copied to clipboard!
The Java Message Service (JMS) is a Java API that Decision Server uses to exchange messages with other application servers such as Oracle WebLogic Server and IBM WebSphere Application Server. You must configure your application server to send and receive JMS messages through Decision Server to ensure proper collaboration between the two servers.
4.2.1. Create a JMS server Copy linkLink copied to clipboard!
You must create a JMS server in order to use JMS.
Procedure
- In the WebLogic Administration Console, navigate to Services → Messaging → JMS Servers.
- Click New to create a new JMS server.
- Enter a name for your JMS server and click Next.
- Select the target server chosen for the Decision Server deployment.
- Click Finish.
4.2.2. Create a JMS module Copy linkLink copied to clipboard!
You must create a JMS module to store your JMS resources, such as connection factories and queues.
Prerequisite
You have created a JMS server.
Procedure
- In the WebLogic Administration Console, navigate to Services → Messaging → JMS Modules.
- Click New to create a module.
- Enter a module name and click Next.
- Select the target server chosen for the Decision Server deployment and click Finish.
- Click the newly created module name and then click Subdeployments.
- Click New to create a subdeployment for your module.
- Give your subdeployment a name and click Next.
- Select the check box to choose the previously created JMS server.
- Click Finish to complete the subdeployment configuration.
4.2.3. Create JMS connection factories Copy linkLink copied to clipboard!
To enable messaging with Decision Server, you must create certain JMS connection factories for sending and receiving messages.
Prerequisites
- You have created a JMS server.
- You have created a JMS module.
Procedure
- In the WebLogic Administration Console, navigate to Services → Messaging → JMS Modules to see a list of JMS modules.
- Select your previously created module and click New to create a new JMS resource.
- Select Connection Factory and click Next.
-
For each of the following required connection factories, enter the name of the connection factory (for example,
KIE.SERVER.REQUEST) and the JNDI name (for example,jms/cf/KIE.SERVER.REQUEST) and click Next. The connection factory automatically selects the servers assigned to the JMS Module as the default. - Click Finish to add the connection factory, and repeat for each required factory.
4.2.3.1. JMS connection factories for Decision Server Copy linkLink copied to clipboard!
The following are the required Java Message Service (JMS) connection factories that enable JMS messaging with Decision Server:
| Name | Default value | Used for |
|---|---|---|
|
|
| Sending all requests to Decision Server |
|
|
| Receiving all responses produced by Decision Server |
4.2.4. Create JMS queues Copy linkLink copied to clipboard!
JMS queues are the destination end points for point-to-point messaging. You must create certain JMS queues to enable JMS messaging with Decision Server.
Prerequisites
- You have created a JMS server.
- You have created a JMS module.
Procedure
- In the WebLogic Administration Console, navigate to Services → Messaging → JMS Modules to see the list of JMS modules.
- Select your previously created module, then click New to create a new JMS resource.
- Select Queue and click Next.
-
For each of the following required queues, enter the name of the queue (for example,
KIE.SERVER.REQUEST) and the JNDI name (for example,jms/KIE.SERVER.REQUEST) and then click Next. - Choose the JMS module subdeployment that connects to the JMS server.
- Click Finish to add the queue, and repeat for each required queue.
4.2.4.1. JMS queues for Decision Server Copy linkLink copied to clipboard!
The following are the required Java Message Service (JMS) queues that enable JMS messaging with Decision Server:
| Name | Default value | Used for |
|---|---|---|
|
|
| Sending all requests to Decision Server |
|
|
| Receiving all responses produced by Decision Server |
4.3. Setting system properties in Oracle WebLogic Server Copy linkLink copied to clipboard!
Set the system properties listed in this section on your Oracle WebLogic Server before you deploy Decision Server.
Procedure
Set the following system property to increase the Java Virtual Machine (JVM) memory size:
USER_MEM_ARGS=-Xms512m -Xmx1024m
USER_MEM_ARGS=-Xms512m -Xmx1024mCopy to Clipboard Copied! Toggle word wrap Toggle overflow If you do not increase the JVM memory size, Oracle WebLogic Server freezes or causes deployment errors when deploying Decision Server.
Specify the following system properties for Decision Server on the Oracle WebLogic Server instance:
Expand Table 4.3. System properties for Decision Server Name Value Description kie.server.jms.queues.responsejms/queue/KIE.SERVER.RESPONSEThe JNDI name of JMS queue for responses used by the Decision Server.
org.kie.server.domainOracleDefaultLoginConfigurationJAAS
LoginContextdomain used to authenticate users when using JMS.org.jbpm.server.ext.disabledtrueDisables Decision Central features, which are not supported in RHDM. If not set, Decision Server will work, but will show error messages during start up.
org.jbpm.ui.server.ext.disabledtrueDisables Decision Central features, which are not supported in RHDM. If not set, Decision Server will work, but will show error messages during start up.
org.jbpm.case.server.ext.disabledtrueDisables Decision Central features, which are not supported in RHDM. If not set, Decision Server will work, but will show error messages during start up.
-
Set the same property values in the
JAVA_OPTIONSenvironment variable:
JAVA_OPTIONS="-Dkie.server.jms.queues.response=jms/queue/KIE.SERVER.RESPONSE -Dorg.kie.server.domain=OracleDefaultLoginConfiguration -Dorg.jbpm.server.ext.disabled=true -Dorg.jbpm.ui.server.ext.disabled=true -Dorg.jbpm.case.server.ext.disabled=true"
JAVA_OPTIONS="-Dkie.server.jms.queues.response=jms/queue/KIE.SERVER.RESPONSE
-Dorg.kie.server.domain=OracleDefaultLoginConfiguration
-Dorg.jbpm.server.ext.disabled=true
-Dorg.jbpm.ui.server.ext.disabled=true
-Dorg.jbpm.case.server.ext.disabled=true"
4.4. Stopping and restarting Oracle WebLogic Server Copy linkLink copied to clipboard!
After you have configured all required system properties in Oracle WebLogic Server, stop and restart the Oracle server to ensure that the configurations are applied.
Procedure
- In the WebLogic Administration Console, navigate to Change Center → Lock & Edit.
- Under Domain Structure, click Environment → Servers → Control.
- Select the server that you want to stop and click Shutdown.
- Select When Work Completes to gracefully shut down the server or select Force Shutdown Now to stop the server immediately without completing ongoing tasks.
- On the Server Life Cycle Assistant pane, click Yes to complete the shutdown.
After the shutdown is complete, navigate to the domain directory in the command terminal,
WLS_HOME/user_projects/<DOMAIN_NAME>. For example:WLS\user_projects\mydomain
WLS\user_projects\mydomainCopy to Clipboard Copied! Toggle word wrap Toggle overflow Enter one of the following commands to restart Oracle WebLogic Server to apply the new configurations:
On UNIX-based operating systems:
startWebLogic.sh
startWebLogic.shCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows operating systems:
startWebLogic.cmd
startWebLogic.cmdCopy to Clipboard Copied! Toggle word wrap Toggle overflow -
Open the Administration Console in a web browser (for example,
http://localhost:7001/console/) and log in with your credentials.
Chapter 5. Installing Decision Server with Oracle WebLogic Server Copy linkLink copied to clipboard!
After you have configured all required system properties in Oracle WebLogic Server, you can install Decision Server with Oracle WebLogic Server to streamline Red Hat Decision Manager application management.
Prerequisite
An Oracle WebLogic Server instance is configured as described in Chapter 4, Configuring Oracle WebLogic Server for Decision Server.
Procedure
Navigate to the Software Downloads page in the Red Hat Customer Portal (login required), and select the product and version from the drop-down options:
- Product: Decision Manager
- Version: 7.2
- Download Red Hat Decision Manager 7.2.0 Decision Server for All Supported EE7 Containers.
-
Extract the downloaded
rhdm-7.2.0-kie-server-ee7.zipfile to a temporary directory. - In the WebLogic Administration Console, navigate to Deployments to view all existing applications.
- Click Install.
-
Navigate to the temporary directory where you downloaded and extracted the
rhdm-7.2.0-kie-server-ee7.zipfile, and go torhdm-7.2.0-kie-server-ee7/kie-server.war. -
Select the
kie-server.warfile and click Next to continue. - Select Install this deployment as an application as the targeting style and click Next.
-
Set the application name to
kie-serverand set the security model toDD Only. Leave the remaining options as default and click Next to continue. - In the Additional Configuration section, choose No, I will review the configuration later and click Finish.
5.1. Verifying the Decision Server installation on Oracle WebLogic Server Copy linkLink copied to clipboard!
After you have installed Decision Server on Oracle WebLogic Server, verify that the installation was successful.
Prerequisites
- An Oracle WebLogic Server instance is configured as described in Chapter 4, Configuring Oracle WebLogic Server for Decision Server.
- Decision Server is installed as described in Chapter 5, Installing Decision Server with Oracle WebLogic Server.
Procedure
-
Enter the Decision Server URL
http://<HOST>:<PORT>/kie-server/services/rest/serverin a web browser. Verify that Decision Server is running.
If Decision Server is not running, stop and restart the Oracle WebLogic Server instance and try again to access the Decision Server URL.
Chapter 6. Installing and running the headless Decision Manager controller with Oracle WebLogic Server Copy linkLink copied to clipboard!
To use the Decision Server REST API or Java Client API to interact with Decision Server, install the headless Decision Manager controller with Oracle WebLogic Server. The headless Decision Manager controller manages Decision Server configuration in a centralized way so that you can use the headless Decision Manager controller to create and maintain containers and perform other server-level tasks.
Prerequisites
- The Oracle WebLogic Server instance is configured as described in Chapter 4, Configuring Oracle WebLogic Server for Decision Server.
- Decision Server is installed on the Oracle WebLogic Server instance.
- You have sufficient user permissions to complete the installation.
Procedure
Navigate to the Software Downloads page in the Red Hat Customer Portal (login required), and select the product and version from the drop-down options:
- Product: Decision Manager
- Version: 7.2
- Download Red Hat Decision Manager 7.2.0 Add-Ons.
-
Extract the downloaded
rhdm-7.2.0-add-ons.zipfile to a temporary directory. - In the WebLogic Administration Console, navigate to Security Realms → Users and Groups.
-
In the kie-server group that you created previously, create a user for the headless Decision Manager controller, such as
controller, and a password for this new user and click OK. For more information about creating groups and users, see Section 4.1, “Configuring the Decision Server group and users”. - Navigate to Deployments to view all existing applications.
- Click Install.
-
Navigate to the temporary directory where you downloaded and extracted the
rhdm-7.2.0-add-ons.zipfile, and go torhdm-7.2.0-add-ons/rhdm-7.2-controller-ee7.zip/controller.war. -
Select the
controller.warfile and click Next to continue. - Select Install this deployment as an application as the targeting style and click Next.
-
Keep the application name as
controllerand set the security model toDD Only. Leave the remaining options as default and click Next to continue. - In the Additional Configuration section, choose No, I will review the configuration later and click Finish.
6.1. Setting system properties for the headless Decision Manager controller Copy linkLink copied to clipboard!
After you install the headless Decision Manager controller, set the system properties listed in this section on your application server or servers to enable proper interaction with the headless Decision Manager controller.
For optimal results, install Decision Server and the headless Decision Manager controller on different servers in production environments. In development environments, you can install Decision Server and the headless Decision Manager controller on the same server. In either case, be sure to make these property changes on all application servers where the headless Decision Manager controller is installed.
Prerequisite
Decision Server and the headless Decision Manager controller are installed on the application server instance.
Procedure
Specify the following JVM property values on the application server instance where the headless Decision Manager controller is installed:
Expand Table 6.1. Required properties for the headless Decision Manager controller Name Requirement org.kie.server.userA user with the
kie-serverroleorg.kie.server.pwdThe password for the user specified in the
org.kie.server.userpropertySpecify the following JVM property values on the application server instance where Decision Server is installed:
Expand Table 6.2. Required properties for Decision Server when headless Decision Manager controller is installed Name Requirement org.kie.server.controller.userA user with the
kie-serverroleorg.kie.server.controller.pwdThe password for the user specified for the
org.kie.server.controller.userpropertyorg.kie.server.idThe ID or name of the Decision Server installation, such as
rhdm700-decision-server-1org.kie.server.locationThe URL of the Decision Server,
http://<HOST>:<PORT>/kie-server/services/rest/serverorg.kie.server.controllerThe URL of the headless Decision Manager controller,
http://<HOST>:<PORT>/controller/rest/controller<HOST>is the ID or name of the Decision Server host, for example,localhostor192.7.8.9.<PORT>is the port of the Decision Server host, for example,7001.
6.2. Verifying the installation Copy linkLink copied to clipboard!
After you install the headless Decision Manager controller and define the required system properties and role requirements on the application server, verify that the headless Decision Manager controller works correctly.
Prerequisites
- Decision Server and the headless Decision Manager controller are installed on the application server instance.
- You have set all required system properties and role requirements for the headless Decision Manager controller on the application server.
Procedure
In your command terminal, enter the following command to verify that the headless Decision Manager controller is working:
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>'
<HOST> is the ID or name of the Decision Server host, for example, localhost or 192.7.8.9.
<PORT> is the port of the Decision Server host, for example, 7001.
<CONTROLLER> and <CONTROLLER_PWD> are the user credentials that you created in this section.
The command should return information about the Decision Server instance.
Alternatively, you can use the Decision Server Java API Client to access the headless Decision Manager controller.
If the headless Decision Manager controller is not running, stop and restart the application server instance and try again to access the headless Decision Manager controller URL or API.
Chapter 7. Next steps Copy linkLink copied to clipboard!
Appendix A. Versioning information Copy linkLink copied to clipboard!
Documentation last updated on Tuesday, May 28, 2019.