Show Table of Contents
Oracle Weblogic Installation and Configuration Guide
Red Hat JBoss BPM Suite 6.1
For Red Hat JBoss BPM Suite
Abstract
A guide to installing and configuring Red Hat JBoss BPM Suite on Oracle Weblogic
Chapter 1. Introduction
1.1. About Red Hat JBoss BPM Suite for Oracle WebLogic Server
Red Hat JBoss BPM Suite for Oracle WebLogic Server is provided as three deployable web application archives:
business-central.war- The main business rules and process management application.dashbuilder.war- The business dashboard and report building application.kie-server.war- Application for executing rules and processes through REST, JMS or a Java client side application.
Installation of JBoss BPM Suite on Oracle WebLogic Server is supported from the 6.1 version of JBoss BPM Suite. In this guide, you will explore how it can be installed on a full profile version of Oracle WebLogic Server.
Before installation, several configuration steps have to be performed to enable a successful setup. This guide will outline these steps.
Before you proceed, make sure you have access to the server on Oracle WebLogic Server and that you are able to successfully access Oracle WebLogic Server's administrative console through a web browser (Usually at http://target-server:7001/console).
As noted earlier, JBoss BPM Suite for Oracle WebLogic Server is distributed as a WAR file. It is then deployed as an exploded archive and then configured as any other web application.
Chapter 2. Download and Extract
2.1. Download Red Hat JBoss BPM Suite for Oracle WebLogic Server
You can download the deployable Red Hat JBoss BPM Suite package file for Oracle WebLogic Server from Red Hat Customer Portal:
- Go to the Red Hat Customer Portal and log in.
- Click .
- In the Product Downloads page that opens, click Red Hat JBoss BPM Suite.
- From the Version drop-down menu, select 6.1.
- In the table, navigate to Red Hat JBoss BPM Suite 6.1 Deployable for Oracle WebLogic Server row and then click Download.
2.2. Extract Red Hat JBoss BPM Suite for Oracle WebLogic Server
The installation zip file for JBoss BPM Suite that you have downloaded contains all necessary WAR deployables mentioned in Section 1.1, “About Red Hat JBoss BPM Suite for Oracle WebLogic Server”. Copy the installation zip to your WebLogic Server host and extract it to a location the server can access.
$ mkdir ~/apps $ cd ~/apps $ unzip ~/jboss-bpmsuite-6.1.0-deployable-wls12c.zip .
Chapter 3. Configure
3.1. Setting Environment Variables
Certain environment variables on your Oracle WebLogic Server require configuration before deploying the application.
JVM Memory Size
With the default JVM memory size, the WebLogic Server freezes and/or causes deployment errors when deploying Business Central. Increase the memory size by setting the following environment variable:
USER_MEM_ARGS=-Xms512m -Xmx1024m -XX:MaxPermSize=512m
JVM Custom Properties
The following custom properties require configuration on the WebLogic Server:
- kie.services.jms.queues.response
- JNDI name of the response queue for JMS remote API. Set to
jms/KIE.RESPONSE.ALL. - kie.server.jms.queues.response
- JNDI name of the response queue for the decision server. Set to
jms/KIE.SERVER.RESPONSE. - javax.xml.bind.context.factory
- The initialization class for the JAXB Context Factory. Set to
com.sun.xml.bind.v2.ContextFactory - org.uberfire.start.method
- Defines startable beans for Uberfire. Set to
ejb(Enterprise JavaBeans). - org.uberfire.domain
- Sets the domain for Uberfire to use. Set to
OracleDefaultLoginConfiguration - com.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager
- Uses BeanManager to look up extensions. This avoids conflicts across multiple instances. Set to
true.
Set all of these custom properties in a single environment variable:
JAVA_OPTIONS="-Dkie.services.jms.queues.response=jms/KIE.RESPONSE.ALL -Dkie.server.jms.queues.response=jms/KIE.SERVER.RESPONSE -Djavax.xml.bind.context.factory=com.sun.xml.bind.v2.ContextFactory -Dorg.uberfire.start.method=ejb -Dorg.uberfire.domain=OracleDefaultLoginConfiguration -Dcom.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true"
3.2. Configuring Security Settings
Several security settings on Oracle WebLogic Server must be set for the Business Central application to work. The following settings enable the container managed authentication mechanisms provided by the WebLogic server.
- In the WebLogic administrative console, click on .
- Choose your desired security realm, or click on to create a new security realm.
- Navigate to → to get to the Groups list for your security realm.
- Click on to create a new group. Create the following five new groups:
admin,analyst,developer,manager,user, andkie-server. - Click on the tab and click to create a new user. Provide this new user with a Name (For example,
business-central-admin) and a Password. Click OK to save.Note
Make sure usernames you create are not the same as the roles defined in the steps above. - Click on the newly created user, then click the tab. Use the selection tool to move the
admingroup from the Available field to the Chosen field. Click Save to save.Note
You may assign this user to any of the groups previously created and in actual production systems you are likely to create separate users for separate groups that align with business roles. The admin group is all encompassing and is therefore useful for the purposes of this setup.
3.3. Creating a Data Source
The Business Central application requires a data source which must be created prior to the deployment of the actual WAR file. This also means that you must have access to an underlying database that the datasource connects to. Whatever your underlying database, make sure you have the datasource ready.
- Navigate to → , which takes you to your JDBC Data Sources list.
- Click → to start creating a new data source.
- Provide your data source with the following details:
- Name - Enter a name for your data source.
- JNDI Name - Enter each JDNI name on a separate line:
jdbc/jbpm- Used for business-central.war
- Database Type - Set to MySQL.
Note
You can use alternative database types by editingWEB-INF/classes/META-INF/persistence.xmlin the Business Central WAR archive. Edit thehibernate.dialectproperty to your preferred database. For example, to change to OracleDB, edit thehibernate.dialectto the following:<property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9Dialect"/>
Click Next to advance to the next configuration screen. - Select your Database Driver in the drop-down menu. Click Next to advance to the next configuration screen.
- Leave the Transaction Options as the defaults and click Next to advance to the next configuration screen.
- Provide the following Connection Properties for your data source:
- Database Name - The name of the database to use on your data source.
- Host Name - The hostname or IP address of the system containing the database.
- Port - The port used to connect to the database. Unless you have configured the database to use a different port, use the default port provided in this field.
- Database User Name - The database user that interacts with the database. Make sure the chosen user has the required permissions to access and write to the chosen database.
- Password - The password for the chosen database user.
Click Next to advance to the next configuration screen. - The Test Database Connection page provides a means to test and confirm your database connection. Click Test Configuration and the page will refresh with a valid connection message. Click Finish to complete the data source configuration.
- Click on the name of the new data source and navigate to tab. Click the checkbox for the server chosen to host the Business Central deployment. Click Save to save your selection.
Important
Dashbuilder requires the same JNDI as Business Central so that it connects to the same datasource. The default JNDI for Dashbuilder is
jdbc/dashbuilder but must be changed to jdbc/jbpm. Log in to your WebLogic server, switch to the dashbuilder.war directory, and edit the WEB-INF/etc/hibernate.cfg.xml file. Find the following line:
<property name="connection.datasource">jdbc/dashbuilder</property>
Change it to:
<property name="connection.datasource">jdbc/jbpm</property>
Save the file when complete.
3.4. Configuring Java Message Service (JMS)
Oracle WebLogic Server must be configured to send and receive JMS messages through Red Hat JBoss BPM Suite. This requires a JMS Server. Follow the steps below to create a JMS Server.
- Navigate to → → .
- Click New to start creating a new JMS Server.
- Provide your JMS Server with a Name. Click Next to advance to the next configuration screen.
- Select the Target server chosen for the Business Central deployment. Click Finish to complete the JMS Server creation.
Create 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.
- Navigate to → → .
- Click New to start creating 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 Business Central deployment. Click Finish to complete the JMS Module creation.
- Click on the newly created module's name, then click on .
- Click New to create a subdeployment for your module.
- Provide your subdeployment with a Name and click Next to advance to the next configuration screen.
- Choose the previously created JMS Server by marking the checkbox. Click Finish to complete the Module's subdeployment configuration.
Create JMS Connection Factories
To send and receive messages from Red Hat JBoss BPM Suite, you will need to create the JMS connection factories - one for receiving messages and one for sending them. The following connection factories are required:
KIE.RESPONSE.ALL- For receiving all responses produced by Red Hat JBoss BPM Suite. The default value isjms/cf/KIE.RESPONSE.ALLKIE.SESSION- For sending messages to the process engine. The default value isjms/cf/KIE.SESSIONKIE.TASK- For sending messages to the task service. The default value isjms/cf/KIE.TASKKIE.AUDIT- For sending messages with audit trail. The default value isjms/cf/KIE.AUDITKIE.SERVER.REQUEST- For all requests to the decision server. The default value isjms/cf/KIE.SERVER.REQUESTKIE.SERVER.RESPONSE- For receiving all responses produced from the decision server. The default value isjms/cf/KIE.SERVER.RESPONSE
Use the following procedure to create each connection factory.
- If you are not there already, navigate to → → to see your list of JMS Modules.
- Click on your previously created module, then click New to start creating a new JMS resource.
- Select Connection Factory and click Next.
- Enter the Name of the connection factory (for example,
KIE.RESPONSE.ALL) and the JNDI Name (for example,jms/cf/KIE.RESPONSE.ALL).Click Next to advance to the next configuration screen. - The connection factory automatically selects the servers assigned to the JMS Module as the default. Click Finish to complete the connection factory creation.
Repeat the above procedure for each connection factory.
Create JMS Queues
You will now need to create the JMS Queues. These queues are the destination end points for point-to-point messaging. You will create:
KIE.RESPONSE.ALL- For Red Hat JBoss BPM Suite responses. The default value isjms/KIE.RESPONSE.ALLKIE.SESSION- For ksession based operations. . The default value isjms/KIE.SESSIONKIE.TASK- For task based operations. The default value isjms/KIE.TASKKIE.AUDIT- For asynchronous audit logs. The default value isjms/KIE.AUDITKIE.SERVER.REQUEST- For all requests to the decision server. The default value isjms/KIE.SERVER.REQUESTKIE.SERVER.RESPONSE- For decision server responses. The default value isjms/KIE.SERVER.RESPONSE
Use the following procedure to create each queue.
- If you are not there already, navigate to → → to see your list of JMS Modules.
- Click on your previously created module, then click New to start creating a new JMS resource.
- Select Queue and click Next.
- Enter the Name of the queue (for example,
KIE.RESPONSE.ALL) and the JNDI Name (for example,jms/KIE.RESPONSE.ALL).Click Next to advance to the next configuration screen. - Choose the JMS Module's subdeployment that connects to the JMS Server. Click Finish to complete the queue creation.
Repeat the above procedure for each queue.
Chapter 4. Install
Now that the basic configuration is done the Oracle WebLogic Server is set to deploy JBoss BPM Suite.
As noted earlier, the JBoss BPM Suite zip file for Oracle WebLogic Server contains the deployable WAR files for both Business Central and Dashbuilder.
Let's start with Business Central.
4.1. Install Business Central
Business Central is uploaded as a Web archive and then accessed by a familiar through a web browser. Start this deployment by installing the Business Central exploded WAR as a WebLogic Application.
- In your Oracle WebLogic Server administrative console, click on . This will show you all the existing applications in the system and allow you to install a new one.
- Click the button to start the process.
- Navigate to the exploded archive location for the Business Central WAR (For example,
/apps/business-central.war/) and select it. Click Next to continue. - Select Install this deployment as an application as the targeting style, then click Next.
- Set the application's Name to
business-centraland set the security model to DD Only. Leave the remaining options as default and click to continue. - In the Additional Configuration section, choose No, I will review the configuration later and click Finish.
You have now successfully installed Business Central on Oracle WebLogic Server. To access the application, navigate to the following location:
http://target-server:7001/business-central
4.2. Install Dashbuilder
Dashbuilder is distributed as a deployable WAR. To install it, please follow these steps:
- Navigate to . This will show you all the existing applications in the system and allow you to install a new one.
- Click the button to start the process.
- Navigate to the exploded archive location for the Dashbuilder WAR (For example,
/apps/dashbuilder.war/) and select it. Click Next to continue. - Select Install this deployment as an application as the targeting style, then click Next.
- Set the application's Name to
dashbuilderand set the security model to DD Only. Leave the remaining options as default and click to continue. - In the Additional Configuration section, choose No, I will review the configuration later and click Finish.
You can now login to dashbuilder using this URL:
http://target-server:7001/dashbuilder
4.3. Install Realtime Decision Server
The Realtime Decision Server is distributed as a deployable WAR. To install it, please follow these steps:
- Navigate to . This will show you all the existing applications in the system and allow you to install a new one.
- Click the button to start the process.
- Navigate to the exploded archive location for the Decision Server WAR (For example,
/apps/kie-server.war/) and select it. Click Next to continue. - Select Install this deployment as an application as the targeting style, then click Next.
- Set the application's Name to
kie-serverand set the security model to DD Only. Leave the remaining options as default and click to continue. - In the Additional Configuration section, choose No, I will review the configuration later and click Finish.
You can now access the Decision Server using this URL:
http://target-server:7001/kie-server
Chapter 5. Next Steps
Now that you have completed the installation, use the following guides to start using Red Hat JBoss BPM Suite:
- Red Hat JBoss BPM Suite 6.1 Getting Started Guide - Provides an introductory tutorial on the core features of BPM Suite.
- Red Hat JBoss BPM Suite 6.1 Users Guide - Provides steps on how to start creating your business process models.
- Red Hat JBoss BPM Suite 6.1 Administration and Configuration Guide - Provides steps on how to configure aspects of your JBoss BPM Suite deployment, including migration, data management, imports and exports, integration, and monitoring.
Appendix A. Additional Notes
- The WebLogic class loading mechanism does not provide access to the application jars located in Business Central's
WEB-INF/libdirectory, which can cause problems for developers looking to inject KIE-CDI classes. As a workaround for this issue, JBoss BPM Suite includes a CDI extension that temporarily swaps class loaders to load the application. This class is located inWEB-INF/classes/org/kie/workbench/backend/weblogic/SwapClassloaderExtension.javaand enabled inWEB-INF/classes/META-INF/services/javax.enterprise.inject.spi.Extension:org.kie.workbench.backend.weblogic.SwapClassloaderExtension
- If using a non-exploded archive, Weblogic packs contents of Business Central's
WEB-INF/classesintoWEB-INF/lib/_wl_cls_gen.jar. If a developer aims to create KieBase and KieSession from resources, KIE-Spring cannot find the classes. For this reason, the recommended deployment method is to use the exploded archives contained within the product's ZIP file.
Appendix B. Revision History
| Revision History | |||
|---|---|---|---|
| Revision 1.0.0-15 | Fri Jul 31 2015 | ||
| |||
Legal Notice
Copyright © 2015 Red Hat, Inc.
This document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed.
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, 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.
Java® is a registered trademark of Oracle and/or its affiliates.
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 Software Collections 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.
All other trademarks are the property of their respective owners.
