Red Hat Process Automation Manager-7.1-Installing and Configuring Process Server On Oracle WebLogic Server-En-US
Red Hat Process Automation Manager-7.1-Installing and Configuring Process Server On Oracle WebLogic Server-En-US
7.1
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons
Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is
available at
http://creativecommons.org/licenses/by-sa/3.0/
. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must
provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert,
Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift,
Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States
and other countries.
Linux ® is the registered trademark of Linus Torvalds in the United States and other countries.
XFS ® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States
and/or other countries.
MySQL ® is a registered trademark of MySQL AB in the United States, the European Union and
other countries.
Node.js ® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the
official Joyent Node.js open source or commercial project.
The OpenStack ® Word Mark and OpenStack logo are either registered trademarks/service marks
or trademarks/service marks of the OpenStack Foundation, in the United States and other
countries and are used with the OpenStack Foundation's permission. We are not affiliated with,
endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
Abstract
This document describes how to configure Oracle WebLogic Server for Process Server and how to
install Process Server on that Oracle server instance.
Table of Contents
Table of Contents
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3. . . . . . . . . . . . .
PREFACE
. . . . . . . . . . . 1.. .RED
CHAPTER . . . . .HAT
. . . . .PROCESS
. . . . . . . . . . SERVER
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4. . . . . . . . . . . . .
. . . . . . . . . . . 2.
CHAPTER . . ORACLE
. . . . . . . . . .WEBLOGIC
. . . . . . . . . . . .SERVER
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5. . . . . . . . . . . . .
. . . . . . . . . . . 3.
CHAPTER . . INSTALLING
. . . . . . . . . . . . . .AND
. . . . . RUNNING
. . . . . . . . . . .ORACLE
. . . . . . . . . WEBLOGIC
. . . . . . . . . . . . SERVER
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6. . . . . . . . . . . . .
.CHAPTER
. . . . . . . . . . 4.
. . .CONFIGURING
. . . . . . . . . . . . . . . .ORACLE
. . . . . . . . .WEBLOGIC
. . . . . . . . . . . . SERVER
. . . . . . . . .FOR
. . . . .PROCESS
. . . . . . . . . . .SERVER
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8. . . . . . . . . . . . .
4.1. CONFIGURING THE PROCESS SERVER GROUP AND USERS 8
4.2. CONFIGURING JDBC DATA SOURCES IN ORACLE WEBLOGIC SERVER 8
4.3. CONFIGURING JAVA MESSAGE SERVICE (JMS) 10
4.3.1. Create a JMS server 10
4.3.2. Create a JMS module 11
4.3.3. Create JMS connection factories 11
4.3.3.1. JMS connection factories for Process Server 12
4.3.4. Create JMS queues 12
4.3.4.1. JMS queues for Process Server 13
4.4. SETTING SYSTEM PROPERTIES IN ORACLE WEBLOGIC SERVER 13
4.5. STOPPING AND RESTARTING ORACLE WEBLOGIC SERVER 14
.CHAPTER
. . . . . . . . . . 5.
. . INSTALLING
. . . . . . . . . . . . . .PROCESS
. . . . . . . . . . .SERVER
. . . . . . . . .WITH
. . . . . .ORACLE
. . . . . . . . .WEBLOGIC
. . . . . . . . . . . . SERVER
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
..............
5.1. VERIFYING THE PROCESS SERVER INSTALLATION ON ORACLE WEBLOGIC SERVER 16
. . . . . . . . . . . 7.
CHAPTER . . NEXT
. . . . . . .STEPS
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
..............
. . . . . . . . . . . .A.
APPENDIX . . VERSIONING
. . . . . . . . . . . . . . INFORMATION
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22
..............
1
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
2
PREFACE
PREFACE
As a system administrator, you can configure your Oracle WebLogic Server for Red Hat Process Server
and install Process 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.
3
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
Created as a web deployable WAR file, Process Server can be deployed on any web container. The
current version of the Process Server is included with default extensions for both Red Hat Decision
Manager and Red Hat Process Automation Manager.
Process 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.
Process Server can be integrated with other application servers, such as Oracle WebLogic Server or IBM
WebSphere Application Server, to streamline Red Hat Process Automation Manager application
management.
4
CHAPTER 2. ORACLE WEBLOGIC SERVER
5
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
For the most up-to-date and detailed installation instructions, see the Oracle WebLogic Server product
page.
NOTE
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
1. Download Oracle WebLogic Server 12.2.1.3.0 or later from the Oracle WebLogic Server
Downloads page.
2. 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.
4. Launch the installation program by running java -jar from the JDK directory on your system.
See the following examples:
On UNIX-based operating systems:
Be sure to replace the JDK location in these examples with the actual JDK location on your
system.
6. 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
startWebLogic.sh
6
CHAPTER 3. INSTALLING AND RUNNING ORACLE WEBLOGIC SERVER
startWebLogic.cmd
The startup script displays a series of messages, and finally displays a message similar to the
following:
http://<HOST>:<PORT>/console
<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/
If you started the Administration Console using secure socket layer (SSL), you must add s after
http, as follows: https://<HOST>:<PORT>/console
9. When the login page of the WebLogic Administration Console appears, enter your
administrative credentials.
7
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
Prerequisites
Procedure
2. Choose your desired security realm or click New to create a new security realm.
3. Navigate to Users and Groups → Groups → New and create the kie-server group.
5. Enter a user, such as server-user, and a password for this new user and click OK.
IMPORTANT
Make 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 name kie-server.
6. Click the newly created user, then return to the Groups tab.
7. Use the selection tool to move the kie-server group from the Available field to the Chosen
field, and click Save.
Prerequisite
The JDBC drivers that you want to use to create database connections are installed on all servers on
8
CHAPTER 4. CONFIGURING ORACLE WEBLOGIC SERVER FOR PROCESS SERVER
which you want to deploy the data source. Some JDBC drivers are installed with Oracle WebLogic
Server, such as WebLogic-branded Data Direct JDBC drivers for DB2, Informix, MS SQL Server, and
Sybase. For more information about JDBC drivers, see Using JDBC Drivers with WebLogic Server in the
Oracle Help Center.
Procedure
1. In the WebLogic Administration Console, navigate to Change Center → Lock & Edit.
3. On the Summary of Data Sources page, click New → Generic Data Source.
4. On the JDBC Data Sources Properties page, enter or select the following information:
Name: Enter a name for this JDBC data source. This name is used in the configuration file
(config.xml) and throughout the Administration Console whenever referring to this data
source.
JNDI Name: Enter the JNDI path to where this JDBC data source will be bound.
Applications look up the data source on the JNDI tree by this name when reserving a
connection.
Database Type: Select the DBMS of the database that you want to connect to. If your
DBMS is not listed, select Other.
6. Select the Database Driver that you want to use to connect to the database. The list includes
common JDBC drivers for the selected DBMS and any other JDBC drivers that have been
installed previously.
7. On the Transaction Options page, leave the Supports Global Transactions option selected
and choose from the available transaction options. You can also clear this check box to disable
(ignore) global transactions in this data source. In most cases, you should leave the option
selected for optimal data efficiency.
Two-Phase Commit: Select this option to enable standard XA processing. This option is
only available when you select an XA JDBC driver to make database connections.
Logging Last Resource: Select this option to enable a non-XA JDBC connection to
participate in global transactions using the Logging Last Resource (LLR) transaction
optimization. This option is recommended in place of Emulate Two-Phase Commit. This
option is only available when you select a non-XA JDBC driver to make database
connections.
Emulate Two-Phase Commit: Select this option to enable a non-XA JDBC connection to
emulate participation in distributed transactions using JTA. Select this option only if your
application can tolerate heuristic conditions. This option is only available when you select a
non-XA JDBC driver to make database connections.
One-Phase Commit: Select this option to enable the non-XA connection to participate in a
global transaction as the only transaction participant. This option is only available when you
select a non-XA JDBC driver to make database connections.
9
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
9. On the Connection Properties page, enter values for the following properties:
Service Name: Specify the service name of the database to which you want to connect. This
must be the same for each data source if more than one is provided. This field is available
only if you selected one of the available service-instance connections drivers for Oracle Real
Application Clusters (RAC).
Database Name: Enter the name of the database that you want to connect to. Exact
database name requirements vary by JDBC driver and by DBMS.
Host Name: Enter the DNS name or IP address of the server that hosts the database. If you
are creating an Oracle GridLink service-instance connection, this must be the same for each
data source if more than one is provided.
Port: Enter the port on which the database server listens for connection requests.
Database User Name: Enter the database user account name that you want to use for each
connection in the data source.
Password/Confirm Password: Enter the password for the database user account.
11. On the Test Database Connection page, review the connection parameters and click Test
Configuration.
Oracle WebLogic Server attempts to create a connection from the Administration Server to the
database. Results from the connection test are displayed at the top of the page. If the test is
unsuccessful, correct any configuration errors and retry the test.
12. Click Next to continue or to skip this step if the JDBC driver you selected is not installed on the
Administration Server.
13. On the Select Targets page, select the servers or clusters on which you want to deploy the
data source and click Finish.
14. Return to the main menu of the WebLogic Administration Console and select Change Center →
Activate Changes.
For more information about Oracle WebLogic Server data sources, see JDBC Data Sources for Oracle
WebLogic Server in the Oracle Help Center.
Procedure
10
CHAPTER 4. CONFIGURING ORACLE WEBLOGIC SERVER FOR PROCESS SERVER
4. Select the target server chosen for the Process Server deployment.
5. Click Finish.
Prerequisite
You have created a JMS server.
Procedure
4. Select the target server chosen for the Process Server deployment and click Finish.
5. Click the newly created module name and then click Subdeployments.
8. Select the check box to choose the previously created JMS server.
Prerequisites
Procedure
2. Select your previously created module and click New to create a new JMS resource.
11
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
4. 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.
5. Click Finish to add the connection factory, and repeat for each required factory.
The following are the required Java Message Service (JMS) connection factories that enable JMS
messaging with Process Server:
Prerequisites
Procedure
2. Select your previously created module, then click New to create a new JMS resource.
4. 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.
5. Choose the JMS module subdeployment that connects to the JMS server.
6. Click Finish to add the queue, and repeat for each required queue.
12
CHAPTER 4. CONFIGURING ORACLE WEBLOGIC SERVER FOR PROCESS SERVER
The following are the required Java Message Service (JMS) queues that enable JMS messaging with
Process Server:
Procedure
1. Set the following system property to increase the Java Virtual Machine (JVM) memory size:
USER_MEM_ARGS=-Xms512m -Xmx1024m
If you do not increase the JVM memory size, Oracle WebLogic Server freezes or causes
deployment errors when deploying Process Server.
2. Specify the following system properties for Process Server on the Oracle WebLogic Server
instance:
13
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
JAVA_OPTIONS="-Dkie.server.jms.queues.response=jms/queue/KIE.SERVER.RESPONSE
-Dorg.kie.server.domain=OracleDefaultLoginConfiguration
-Dorg.kie.executor.jms.cf=jms/cf/KIE.SERVER.EXECUTOR
-Dorg.kie.executor.jms.queue=jms/queue/KIE.SERVER.EXECUTOR
-Dorg.kie.server.persistence.ds=jdbc/jbpm
-Dorg.kie.server.persistence.tm=org.hibernate.service.jta.platform.internal.WeblogicJtaPlatform
-Dorg.kie.server.persistence.dialect=org.hibernate.dialect.H2Dialect
// Optional server router, for clustered server environment
-Dorg.kie.server.router=http://localhost:9000
Procedure
1. In the WebLogic Administration Console, navigate to Change Center → Lock & Edit.
3. Select the server that you want to stop and click Shutdown.
14
CHAPTER 4. CONFIGURING ORACLE WEBLOGIC SERVER FOR PROCESS SERVER
4. Select When Work Completes to gracefully shut down the server or select Force Shutdown
Now to stop the server immediately without completing ongoing tasks.
5. On the Server Life Cycle Assistant pane, click Yes to complete the shutdown.
6. 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
7. Enter one of the following commands to restart Oracle WebLogic Server to apply the new
configurations:
On UNIX-based operating systems:
startWebLogic.sh
startWebLogic.cmd
15
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
Prerequisite
An Oracle WebLogic Server instance is configured as described in Chapter 4, Configuring Oracle
WebLogic Server for Process Server.
Procedure
1. 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:
Version: 7.1
2. Download Red Hat Process Automation Manager 7.1.0 Process Server for All Supported EE7
Containers.
5. Click Install.
6. Navigate to the temporary directory where you downloaded and extracted the rhpam-7.1.0-kie-
server-ee7.zip file, and go to rhpam-7.1.0-kie-server-ee7/kie-server.war.
8. Select Install this deployment as an applicationas the targeting style and click Next.
9. Set the application name to kie-server and set the security model to DD Only. Leave the
remaining options as default and click Next to continue.
10. In the Additional Configuration section, choose No, I will review the configuration laterand
click Finish.
Prerequisites
Process Server is installed as described in Chapter 5, Installing Process Server with Oracle
16
CHAPTER 5. INSTALLING PROCESS SERVER WITH ORACLE WEBLOGIC SERVER
Process Server is installed as described in Chapter 5, Installing Process Server with Oracle
WebLogic Server.
Procedure
17
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
Prerequisites
Procedure
1. 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:
Version: 7.1
4. In the WebLogic Administration Console, navigate to Security Realms → Users and Groups.
5. In the kie-server group that you created previously, create a user for the headless Process
Automation 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
Process Server group and users”.
7. Click Install.
8. Navigate to the temporary directory where you downloaded and extracted the rhpam-7.1.0-
add-ons.zip file, and go to rhpam-7.1.0-add-ons/rhpam-7.1-controller-ee7.zip/controller.war.
10. Select Install this deployment as an applicationas the targeting style and click Next.
11. Keep the application name as controller and set the security model to DD Only. Leave the
remaining options as default and click Next to continue.
12. In the Additional Configuration section, choose No, I will review the configuration laterand
click Finish.
18
G AND RUNNING THE HEADLESS PROCESS AUTOMATION MANAGER CONTROLLER WITH ORACLE WEBLOGIC SERVER
NOTE
For optimal results, install Process Server and the headless Process Automation Manager
controller on different servers in production environments. In development environments,
you can install Process Server and the headless Process Automation Manager controller
on the same server. In either case, be sure to make these property changes on all
application servers where the headless Process Automation Manager controller is
installed.
Prerequisite
Process Server and the headless Process Automation Manager controller are installed on the application
server instance.
Procedure
1. Specify the following JVM property values on the application server instance where the
headless Process Automation Manager controller is installed:
Table 6.1. Required properties for the headless Process Automation Manager controller
Name Requirement
2. Specify the following JVM property values on the application server instance where Process
Server is installed:
Table 6.2. Required properties for Process Server when headless Process Automation
Manager controller is installed
Name Requirement
19
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
Name Requirement
<HOST> is the ID or name of the Process Server host, for example, localhost or 192.7.8.9.
<PORT> is the port of the Process Server host, for example, 7001.
Prerequisites
Process Server and the headless Process Automation Manager controller are installed on the
application server instance.
You have set all required system properties and role requirements for the headless Process
Automation Manager controller on the application server.
Procedure
In your command terminal, enter the following command to verify that the headless Process Automation
Manager controller is working:
<HOST> is the ID or name of the Process Server host, for example, localhost or 192.7.8.9.
<PORT> is the port of the Process 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 Process Server instance.
NOTE
Alternatively, you can use the Process Server Java API Client to access the headless
Process Automation Manager controller.
If the headless Process Automation Manager controller is not running, stop and restart the application
server instance and try again to access the headless Process Automation Manager controller URL or
API.
20
CHAPTER 7. NEXT STEPS
21
Red Hat Process Automation Manager 7.1 Installing and configuring Process Server on Oracle WebLogic Server
22