Book Image

Oracle SOA BPEL Process Manager 11gR1 - A Hands-on Tutorial

Book Image

Oracle SOA BPEL Process Manager 11gR1 - A Hands-on Tutorial

Overview of this book

BPEL, Business Process Execution Language is the definitive standard in writing and defining actions within business processes. Oracle BPEL Process Manager R1 is Oracle's latest offering, providing you with a complete end-to-end platform for the creation, implementation, and management of your BPEL business processes that are so important to your service-oriented architecture."Oracle SOA BPEL Process Manager 11gR1 – A Hands-on Tutorial" is your guide to BPEL design and development, SOA Suite platform troubleshooting, and engineering in a detailed step-by-step guide working real-world examples and case studies. Using industry-leading practices you will start by creating your first BPEL process and move onto configuring your processes, then invoking, orchestrating, and testing them. You will then learn how to use architect and design services using BPEL, performance tuning, integration, and security, as well as high availability, troubleshooting, and modeling for the future. "Oracle SOA BPEL Process Manager 11gR1 – A Hands-on Tutorial" is your complete hands-on guide to Oracle SOA BPEL Process Manager 11g.
Table of Contents (20 chapters)
Oracle SOA BPEL Process Manager 11gR1 – A Hands-on Tutorial
Credits
About the Authors
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Index

Installing and configuring BPEL Process Manager


This section focuses on setting up the development environment to design and develop business process services using BPEL. The following figure shows the typical environment system components for designing and developing a BPEL service:

BPEL Process Manager is part of SOA Suite for Version 11.1.1.6. The development environment for creating and updating BPEL Process Manager requires the JDeveloper IDE with SOA Suite extension, a database with SOA Suite Schemas, and an SOA Suite.

The following are the steps to be followed:

  1. Install Oracle JDeveloper

    • Install JDeveloper

    • Install SOA Extensions

  2. Install SOA Suite Database Schemas

  3. Install Oracle SOA Suite

Step 1 – install Oracle JDeveloper

Setting up the development environment involves three major steps. As shown in the following figure, the first step is to install JDeveloper and SOA Extensions:

As shown in the following screenshot, download JDeveloper from the Oracle's website:

Tip

Install JDeveloper 11.1.1.6.0 or a newer version. Please note that installing JDeveloper Version 11.1.1.6 installs the following products preconfigured and ready to use with JDeveloper:

  • WebLogic Server Version 10.3.6

  • JDK

  1. Install JDeveloper by executing jdevstudio11116install.exe. One of the major steps for the installation process is configuring a new, or using an existing, middleware home directory. This will install WebLogic along with JDeveloper, as shown in the following screenshot:

  2. You'll see the Middleware Home Directory screen (if needed, update the install directory), click on Next. Then select Complete and again click on Next.

  3. The next screen will list the Middleware Home and Product Installation directories. Click on Next. We recommend keeping the default selection of All Users, as shown in the following screenshot and click on Next:

  4. On the next screen you will find the installation summary. Click on Next on the Installation Summary window that will start installing the Oracle JDeveloper. On completion of the installation, you will see the congratulations window, as shown in the following screenshot. Please check the Run Quickstart option and click on Done:

  5. On next window, click on Launch Oracle JDeveloper 11g and select the Default Role option and leave Always prompt for role selection on startup selected, as shown in the following screenshot and click on OK. On the next window, make sure to associate the file types of JDeveloper Application, JDeveloper Project, Java Source File, and Java Server Page with JDeveloper:

Installing SOA extensions

The SOA extension for JDeveloper contains SOA Composite Assembly, BPEL PM, Mediator, Human Task, Business Rules, and Adapters. These components are deployed and configured as part of SOA Suite installs. The JDeveloper extensions are only for design.

Perform the following steps to install SOA extensions. An alternative approach is to download the SOA Composite Editor – JDeveloper extensions from Oracle Fusion Middleware Products Update Center from Oracle's website.

  1. Select Check for Updates from the Help tab, as shown in the following screenshot and then click on Next on the Welcome window:

  2. Select Oracle Fusion Middleware Products and Official Oracle Extensions and Updates. Make sure you are connected to the Internet. Another alternative is to download the SOA extensions in the hard disk and manually configure it in JDeveloper:

  3. Select the SOA composite editor. This will install the SOA extensions required for creating and updating BPEL services. Click on Next:

  4. On the next window, it will display that it is downloading and installing the SOA extension for the JDeveloper. On a successful install, you will see the Installation Summary window, as shown in the following screenshot. Click on Finish to complete the SOA extension install and restart the JDeveloper. This completes the installation of JDeveloper with SOA Suite extensions:

Step 2 – download and install Oracle Database

As shown in the following screenshot, the second step is to install a database and execute an RCU script for creating SOA schemas:

This step assumes that you have got an Oracle database server installed and you have database admin privileges to run Repository Creation Utility (RCU). In the case of personal Oracle Express Database, start the database service if it is not running. One can use the Start Database option from the Start menu options.

Open a Windows shell command prompt and run sqlplus system/{password}@XE as sysdba to log in to Oracle Express Database.

The default limit of processes is not sufficient for creating the SOA Suite schema. Set the processes to 600 for all the SIDs, as given in the following lines of command:

SQL> alter system reset sessions scope=spfile sid='*';
SQL> alter system set processes=600 scope=spfile;

Make the changes effective immediately with the following command:

SQL> shutdown immediate

Using system Start menu's Start Database menu options start the Oracle Database service.

Validate the system settings with the following steps:

  1. Connect to the database using a Windows shell command prompt and run sqlplus system/{password}@XE as sysdba.

    SQL> show parameter session
    SQL> show parameter processes
    
  2. Set the RCU_JDBC_TRIM_BLOCKS variable as TRUE before creating the schemas using RCU if your database is Oracle XE.

    Note

    RCU_JDBC_TRIM_BLOCKS is an environment variable with the operating system. Please note, that RCU_JDBC_TRIM_BLOCKS is not a variable in Oracle XE!

  3. In Windows, you need to navigate to Control Panel | Advanced system settings | Advanced. From under System Properties, click on Environment Variables. An Environment Variables dialog appears. From under the System variables section, click on New. A New System Variable dialog appears. Set the Variable Name as RCU_JDBC_TRIM_BLOCKS and Variable Value as TRUE, as shown in the following screenshot:

  4. For creating RCU schemas, execute rcu.bat from the bin folder located at {FullPath}\rcuHome\BIN. Please note, that rcu.bat won't work with the files and folders names having a space in them. It will display the repository creation utility (RCU). Click on Next on the Welcome window that will take you to the Create Repository step, as shown in the following screenshot:

  5. Click on Next and enter the database information. Look in the tnsnames.ora or listener.ora files located in the Oracle Database install directory for the database information. As shown in the following screenshot, ensure that you use the exact information from the tnsnames.ora file as the database information. For example, enter the value for Host Name as the database server hostname. If you are running the Repository Creation Utility on the database server itself, you may use Host Name as localhost, as shown in the following screenshot:

  6. You can ignore the database support warnings. It will initiate the installation step of Checking Prerequisites with all the green ticks, as shown in the following screenshot. Click on OK:

  7. The next screen allows you to add a prefix with database schemas. Usually the prefix DEV is used for development environments, PROD for production, and so on. Select the SOA and BPM Infrastructure components on the next window that will allow you to select Metadata Services, as shown in the following screenshot. Dependent schemas are selected automatically. If you choose to select other components, these install instructions may not match your experience. Also, you may have to increase processes in XE (you will get a message telling you what is required):

    The preceding step creates the following database schemas:

    • MDS: Metadata service

    • SOA Infra: SOA Infrastructure

    • ORA BAM: Business Activity Monitoring Service

    • ORA SDPM: User Messaging Service

  8. Click on OK on the next window and choose a password for the database schemas, as shown in the following screenshot. It is recommended to keep the same passwords for all schemas for a development environment:

  9. On the next window it will create tablespaces for the all the schemas created earlier:

  10. Click on OK to create tablespaces in the database:

  11. Click on Create. This will create all schemas in the database, as shown in the following screenshot. On the next window, click on Close. That completes the creation of database schemas for the SOA Suite:

Step 3 – install Oracle SOA Suite

As shown in the following figure, the final step is to install the SOA Suite.

The Oracle SOA Suite Version 11.1.1.6 can be downloaded from Oracle's website.

Perform the following steps to complete the installation:

  1. Extract all the disks from the ZIP archive into one folder and run setup.exe from disk1.

  2. To avoid the install error message, provide the location of JDK/JRE while running the setup.exe file from the command line. You will need to pass jreLoc as a parameter to setup.exe, as shown in the following command line:

    setup.exe -jreLoc C:\Oracle\Middleware\jdk160_24
    

    Tip

    If you are installing JDK manually in a folder, select the entire file path with no spaces. The installer won't recognize a folder name with spaces.

  3. It will launch the install window, as shown in the following screenshot. Click on Next. On the next window click on Skip Software Updates and then click on Next:

  4. It will start the SOA Suite installation and that will perform the Prerequisite Checks. On successful checks, we will get all the status as green, as shown in the following screenshot. Click on Next:

  5. Please make sure that you have already installed WebLogic as a standalone install or as part of the JDeveloper install. On the next window, as shown in the following screenshot, enter the location of Oracle Middleware Home and click on Next:

  6. On the next window, if you get the warning message that an existing Oracle SOA Suite 11g home has been detected, click on Yes to upgrade the existing Oracle SOA Suite 11g and then click on Next:

  7. On the next window, we will get the installation summary, as shown in the following screenshot. Click on Install to start the SOA Suite installation:

  8. On the next window, you will get the installation progress window that may take a few minutes to finish the install. On completion of the install, click on Next and that will take you to the Installation Complete window, as shown in the following screenshot. Click on Finish to complete the Oracle SOA Suite installation: