JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Configuring Oracle Java CAPS JBI Components for GlassFish Clustering     Java CAPS Documentation
search filter icon
search icon

Document Information

Configuring Oracle Java CAPS JBI Components for Clustering

JBI Component Clustering Overview

Clustering Overview

Component Support for Clustering

Load Balancing and Failover

Clustering Setup Summary

Creating a GlassFish Cluster

To Create a GlassFish Cluster

Adding a Java CAPS JBI Component to a Cluster

To Add a Shared Library to a Cluster

To Add a Java CAPS JBI Component to a Cluster

Modifying Server Properties for Java CAPS JBI Components in a Cluster

To Modify Runtime Properties for a Component in a Cluster

To Create Application Configurations and Variables for a Component in a Cluster

To View the Descriptor for a Component in a Cluster

To Set Logging Properties for a Component in a Cluster

To Monitor a Component in a Cluster

Configuring the BPEL Service Engine for Clustering

Setting Up the BPEL Database

To Set Up the BPEL Database

Adding the BPEL Service Engine to the Cluster

To Add the BPEL Service Engine to the Cluster

Debugging a Business Process Deployed in a Cluster

To Debug a Business Process Deployed in a Cluster

Configuring the IEP Service Engine for Clustering

Setting Up the IEP Database

To Set Up the IEP Database

Adding the IEP Service Engine to the Cluster

To Add the IEP Service Engine to the Cluster

Configuring the XSLT Service Engine for Clustering

To Add the XSLT Service Engine to the Cluster

Configuring the Java EE Service Engine for Clustering

To Enable the Java EE Service Engine on the Cluster

Configuring the Data Mashup Service Engine for Clustering

To Add the Data Mashup Service Engine to the Cluster

Configuring the Database Binding Component for Clustering

Creating the Clustering Database for the Database Binding Component

To Create the Clustering Database for the Database Binding Component

Adding the Database Binding Component to the Cluster

To Add the Database Binding Component to the Cluster

Configuring the File Binding Component for Clustering

Adding the File Binding Component to the Cluster

To Add the File Binding Component to the Cluster

Configuring the File BC WSDL File for Clustering

To Configure the File BC WSDL File for Clustering

Configuring the FTP Binding Component for Clustering

Adding the FTP Binding Component to the Cluster

To Add the FTP Binding Component to the Cluster

Configuring the FTP BC WSDL for Clustering

To Configure the FTP BC WSDL for Clustering

Configuring the HTTP Binding Component for Clustering

Enabling the HTTP Binding Component on the Cluster

To Enable the HTTP Binding Component on the Cluster

Configuring the HTTP BC Port Numbers for Clustering

To Configure the HTTP BC Port Numbers for Clustering

Configuring the JMS Binding Component for Clustering

To Add the JMS Binding Component to the Cluster

Configuring the LDAP Binding Component for Clustering

To Add the LDAP Binding Component to the Cluster

Configuring the Scheduler Binding Component for Clustering

To Add the Scheduler Binding Component to the Cluster

Deploying a Service Assembly to a Cluster

To Deploy a Service Assembly to a Cluster

Configuring Components for Standalone High Availability and Failover

Configuring the BPEL Service Engine for Multiple Standalone Instances

To Configure the BPEL Service Engine for Multiple Standalone Instances

Configuring the IEP Service Engine for Multiple Standalone Instances

To Configure the IEP Service Engine for Multiple Standalone Instances

Configuring Components for Standalone High Availability and Failover

All Java CAPS JBI components provide high availability and failover features without using GlassFish clustering. Implementing the BPEL SE or IEP SE in this type of environment requires special configuration. The service engines are installed across multiple standalone GlassFish domains installed on multiple machines. In this implementation, if one engine fails, any running BPEL or IEP processes failover to the running engines.


Note - You can install the GlassFish domains on the same or different machines, but installing on different machines provides high availability and failover.


Both the BPEL SE and IEP SE use persistence databases to manage the state of each instance. They depend on the database server for high availability and failover features, so the persistence database needs to be configured for high availability and failover.

Because of the new support for GlassFish clustering for Java CAPS JBI components, this feature is provided primarily for compatibility with previous versions.

Configuring the BPEL Service Engine for Multiple Standalone Instances

You can deploy the same application across multiple BPEL SEs that connect to the same database. For both clustering and failover, BPEL SE persistence must be enabled.

To Configure the BPEL Service Engine for Multiple Standalone Instances

Before You Begin

If you are using a Derby database, start the database independent of GlassFish. If you are using Oracle, create the database instance for the persistence database.

  1. Install two or more GlassFish v2.1 domains.
  2. Configure the first GlassFish domain by doing the following:
    1. Launch the Admin Console.
    2. Create the database connection pools and JDBC resources as described in Setting Up the BPEL Database.
    3. In the left navigation bar, select Application Server.
    4. Click the JVM Settings tab, and then click the JVM Options tab.
    5. Click Add JVM Option, and enter the following in the blank row that appears:

      -Dcom.sun.jbi.bpelse.isClustered=true

    6. Click Add JVM Option, and enter the following in the blank row that appears:

      -Dcom.sun.jbi.bpelse.engineId=Name

      Where Name is a unique name for the BPEL SE instance.

    7. Restart the application server.
    8. Make sure all necessary components are installed.
    9. Repeat these steps on the subsequent GlassFish domains. Use a unique name for the instance, and point all domains to the same persistence database.
  3. When all domains are configured, start the BPEL SE (sun-bpel-engine) on all domains.
  4. Configure the following runtime properties for each IEP SE instance, and then stop and restart the BPEL SE:
    • Persistence Enabled – Set this to true.

    • Non XA Data Source Name – The non-XA JDBC resource you created earlier.

    • XA Data Source Name – The XA JDBC resource you created earlier.

  5. Check the BPEL SE database table named ENGINE. It should list each engine ID you defined.
  6. When you deploy the Service Assembly, deploy it to all standalone GlassFish domains.

Configuring the IEP Service Engine for Multiple Standalone Instances

You can deploy the same application across multiple IEP SEs that connect to the same database. In a standalone environment, an event processor is owned by the IEP instance on which it is deployed first. The rest of the processing is similar to that in a clustered environment. All instances can receive the incoming messages, and once a message is received it is inserted into the IEP database. The instance that owns the event processor picks up the event to complete processing and writes the output. If an IEP instance fails, any in-process transactions are taken over by one of the remaining IEP instances and the process is completed. When the failed engine recovers, it continues to process new requests.

To Configure the IEP Service Engine for Multiple Standalone Instances

Before You Begin

If you are using a Derby database, start the database independent of GlassFish. If you are using Oracle, create the database instance for the persistence database.

  1. Install two or more GlassFish v2.1 domains.
  2. Configure the first GlassFish domain by doing the following:
    1. Launch the Admin Console.
    2. Create the database connection pools and JDBC resources as described in Setting Up the IEP Database.
    3. In the left navigation bar, select Application Server.
    4. Click the JVM Settings tab, and then click the JVM Options tab.
    5. Click Add JVM Option, and enter the following in the blank row that appears:

      -Dcom.sun.jbi.iepse.isClustered=true

    6. Click Add JVM Option, and enter the following in the blank row that appears:

      -Dcom.sun.jbi.iepse.instanceName=Name

      Where Name is a unique name for the IEP SE instance.

    7. Restart the application server.
    8. Make sure all necessary components are installed.
    9. Repeat these steps on the subsequent GlassFish domains. Use a unique name for the instance, and point all domains to the same persistence database.
  3. When all domains are configured, start the IEP SE (sun-iep-engine) on all domains.
  4. Configure the following runtime properties for each IEP SE instance, and then stop and restart the IEP SE:
    • Non XA Data Source Name – The non-XA JDBC resource you created earlier.

    • XA Data Source Name – The XA JDBC resource you created earlier.

    • Database Schema Name – This matches the username specified in the connection pools.

  5. Check the IEP SE database table named EMS_ENGINE. The ID column should list each instance name you defined.
  6. When you deploy the Service Assembly, deploy it to all standalone GlassFish domains.