Red Hat Training
A Red Hat training course is available for Red Hat Decision Manager
Chapter 3. Configuring Oracle WebLogic Server
3.1. Setting environment variables
You must set the environment variables listed in this section on your Oracle WebLogic Server before you deploy Decision Server.
JVM memory size
Set the following environment variable to increase the JVM memory size:
USER_MEM_ARGS=-Xms512m -Xmx1024m
If you do not increate the JVM memeory size, Oracle WebLogic Server freezes or causes deployment errors when deploying Decision Server.
JVM custom properties
You must specify the following Decision Server property values on the Oracle WebLogic Server instance:
-
com.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager
: UsesBeanManager
to look up extensions. This avoids conflicts across multiple instances. Set totrue
. -
kie.server.jms.queues.response
: JNDI name of the response queue for the Decision Server. Set tojms/KIE.SERVER.RESPONSE
. -
org.kie.server.domain
: JAAS LoginContext domain used to authenticate users when using JMS. Set toOracleDefaultLoginConfiguration
. Set the values of the following properties to
true
to disable the jBPM functionality of Decision Server:-
org.jbpm.server.ext.disabled
-
org.jbpm.ui.server.ext.disabled
-
org.jbpm.case.server.ext.disabled
-
Set these property values in the JAVA_OPTIONS environment variable:
JAVA_OPTIONS="-Dkie.server.jms.queues.response=jms/KIE.SERVER.RESPONSE -Dorg.org.kie.server.domain=OracleDefaultLoginConfiguration -Dcom.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true -Dorg.jbpm.server.ext.disabled=true -Dorg.jbpm.ui.server.ext.disabled=true -Dorg.jbpm.case.server.ext.disabled=true"
3.2. Starting Oracle WebLogic Server
The instructions in this section describe how to start Oracle WebLogic Server in a standalone Oracle WebLogic Server domain.
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
At the command prompt, navigate to the domain directory, `WLS_HOME/user_projects/<DOMAIN_NAME>''. For example:
WLS\user_projects\mydomain
Enter one of the following commands to start Oracle WebLogic Server:
On UNIX-based system:
startWebLogic.sh
On Microsoft Windows:
startWebLogic.cmd
The startup script displays a series of messages, finally displaying a message similar to the following:
<Dec 8, 2017 3:50:42 PM PDT> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode>
Open the following URL in a web browser:
http://<HOSTNAME>:<PORT>/console
In this command:
-
HOSTNAME
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 address field:
http://localhost:7001/console/
If you started the Administration Server using secure socket layer (SSL), you must add
s
afterhttp
, as follows:https://hostname:port/console
-
- When the login page appears, enter your administrative credentials.
3.3. Configuring security settings
Complete the steps in this section to enable the container-managed authentication mechanisms provided by the Oracle WebLogic Server:
Procedure
- In the WebLogic administrative console, click Security Realms.
- Choose your desired security realm or click New to create a new security realm.
- Navigate to Users and Groups → Groups to display the groups list for your security realm.
-
Click New to create the
kie-server
group. - Click the Users tab and click New to create a new user.
Enter a name and password for this new user, for example
server-user
/password1234
, 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
, you should not create a user with the user namekie-server
.- Click the newly created user, then click the Groups tab.
-
Use the selection tool to move the
kie-server
group from the Available field to the Chosen field, and click Save.
3.4. Configuring Java Message Service
You must configure Oracle WebLogic Server to send and receive Java Message Service (JMS) messages through Decision Server.
3.4.1. Create a JMS server
You must create a JMS server before you can use JMS.
Procedure
- 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 Central deployment.
- Click Finish to complete the JMS Server creation.
Create a JMS module
A JMS module stores your JMS resources, such as connection factories and queues. Use the following steps to create a new JMS module.
Procedure
- Navigate to Services → Messaging → JMS Modules.
- Click New to create a new module.
- Provide your module with a name and click Next to advance to the next configuration screen.
- Select the target server chosen for the Decision Server deployment.
- Click Finish to complete the JMS module creation.
- Click the newly created module’s name, then click Subdeployments.
- Click New to create a subdeployment for your module.
- Give your subdeployment a name and click Next.
- Click the box to select the previously created JMS server.
- Click Finish to complete the subdeployment configuration.
Create JMS connection factories
To send and receive messages from Decision Server, you must create a JMS connection factory for receiving messages and another JMS connection factory for sending messages. The following connection factories are required:
KIE.SERVER.REQUEST
: for all requests to Decision Server.Default value:
jms/cf/KIE.SERVER.REQUEST
.KIE.SERVER.RESPONSE
: for receiving all responses produced by Decision Server.Default value:
jms/cf/KIE.SERVER.RESPONSE
.
Perform the following steps for each connection factory.
Procedure
- Navigate to Services → Messaging → JMS Modules to see a list of JMS modules.
- Select your previously created module, then click New to create a new JMS resource.
- Select Connection Factory and click Next.
-
Enter the name of the connection factory (for example
KIE.SERVER.REQUEST
) and the JNDI name (for examplejms/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 complete the connection factory creation.
Create JMS queues
JMS queues are the destination end points for point-to-point messaging. You must create the following JMS queues:
KIE.SERVER.REQUEST
: for all requests to the Decision Server.Default value:
jms/KIE.SERVER.REQUEST
.KIE.SERVER.RESPONSE
: for the Decision Server responses.Default value:
jms/KIE.SERVER.RESPONSE
.
Repeat the following steps to create each queue:
- 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.
-
Enter the name of the queue (for example
KIE.SERVER.REQUEST
) and the JNDI name (for examplejms/KIE.SERVER.REQUEST
) and then click Next. - Choose the JMS module subdeployment that connects to the JMS server.
- Click Finish to complete the queue creation.