Skip Headers
Oracle® Fusion Middleware Deployment Guide for Oracle Service Bus
11g Release 1 (11.1.1.3)

Part Number E15022-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

4 Configuring a Clustered Deployment

This section describes the tasks that you must perform to configure Oracle Service Bus for deployment in a clustered environment.

Note:

If you want to run Oracle Service Bus on a managed server in a non-clustered environment, see Chapter 2, "Configuring a Non-Clustered Deployment."

After planning the architecture of your clustered domain, as described in Section 3.2, "Designing a Clustered Deployment," you are ready to set up Oracle Service Bus in a clustered environment. To do this, you must configure an administration server and managed servers, and then deploy Oracle Service Bus resources to the servers. You also need a router (hardware or software), if you need inbound HTTP load balance functions. The persistent configuration for a domain of Oracle WebLogic Server instances and clusters is stored in an XML configuration file (config.xml) in the config directory of the root directory of your Oracle Service Bus domain.

To set up and deploy Oracle Service Bus in a clustered domain, complete the following steps:

For information about deploying Oracle Service Bus in a non-clustered environment, see Chapter 2, "Configuring a Non-Clustered Deployment."

4.1 Step 1. Comply with Configuration Prerequisites

This section describes prerequisites for configuring Oracle Service Bus to run in a clustered environment:

For more information about setting up clustered Oracle WebLogic Server instances, see "Setting Up WebLogic Clusters" in Oracle Fusion Middleware Using Clusters for Oracle WebLogic Server.

4.2 Step 2. Prepare an Oracle Service Bus Domain

When preparing an Oracle Service Bus domain, you must add a definition for each managed server to the domain configuration file (config.xml), assign all managed servers to a cluster, specify the Oracle Service Bus components on the servers in your domain, and so on.

To prepare an Oracle Service Bus environment in a clustered domain, complete the tasks described in the following sections:

4.2.1 Creating an Oracle Service Bus Domain Using the Oracle Fusion Middleware Configuration Wizard

For information on creating an Oracle Service Bus domain with the Oracle Fusion Middleware Configuration Wizard, see "Installing and Configuring Oracle Service Bus 11g" in the Oracle Fusion Middleware Installation Guide for Oracle Service Bus.

4.2.1.1 Adding Proxy Server or Firewall Information to your Domain Configuration

If you will be using Web services behind a proxy server or firewall, you must edit the config.xml file to include information about that proxy server or firewall.

To add proxy server or firewall information to your domain configuration, complete the following steps:

  1. Open config.xml with an ASCII editor.

  2. Find the line that starts with the following tag in the config.xml file:

    <Cluster
    
  3. Add the following three attributes to the Cluster attribute list:

    FrontendHTTPPort="proxyPort" FrontendHTTPSPort="proxySSLPort" FrontendHost="proxyServerHost"
    

    For example, the following listing is an example of a cluster address with a firewall specified in a config.xml file for a cluster named MyCluster and a proxy server named MyProxy:

    <Cluster ClusterAddress="127.0.0.1:7001,127.0.0.2:7001,127.0.0.3,127.0.0.4:7001" FrontendHTTPPort="7006" FrontendHTTPSPort="7007" FrontendHost="MyProxy" MulticastAddress="127.0.0.5" MulticastPort="7010" Name="MyCluster"/>
    
  4. Save your changes and close the config.xml file.

4.2.2 Configuring JMS Resources

In addition to configuring JMS file stores in the Oracle Fusion Middleware Configuration Wizard, proxy services and business services that use JMS require configuration of the following resources:

  • JMS queues/topics. Oracle Service Bus automatically configures JMS queues for proxy services that are implemented using JMS. You must configure JMS queues/topics for all business services using JMS and for any proxy services that are implemented using non- JMS.

    Proxy services can consume messages from a remote queue on a separate domain. In this case, Oracle Service Bus will not create the queue for you. The JMS queues can be created for proxy services only if the queues are on the same local Oracle Service Bus domain.

  • JMS connection factories. You must configure JMS connection factories for all business services and proxy services implemented using JMS.

For information about configuring JMS resources, see "Configuring Advanced JMS System Resources" in Oracle Fusion Middleware Configuring and Managing JMS for Oracle WebLogic Server.

4.3 Step 3. Configure Oracle Service Bus Security

Oracle Service Bus leverages the security features of Oracle WebLogic Server to ensure message confidentiality and integrity (message-level security), secure connections between clients and Oracle WebLogic Server (transport-level security), and authentication and authorization (access control). For information about the tasks you must complete, see "Security" in the Oracle Fusion Middleware Developer's Guide for Oracle Service Bus.

Note:

You must configure security separately for each Oracle Service Bus domain. Oracle Service Bus does not export or import security configurations.

If you want to configure SSL for your cluster, you can do so when creating your domain or by using the Oracle WebLogic Server Administration Console. For a domain in which security functionality is deployed in a multi-node cluster, you also need to configure keystores, server certificate and private key for each managed server, and so on, for every machine in a cluster. You either need to use a separate keystore for each machine or you can use a single keystore if it is available to all machines.

4.4 Step 4. Starting, Stopping, and Monitoring Managed Servers

This section describes the basic management tasks for the managed servers in your clustered domain:

4.4.1 Starting and Stopping Managed Servers

Node Manager is a utility that enables you to start, stop, and migrate your Oracle WebLogic Server instances. You can start your managed servers using Node Manager in conjunction with the Oracle WebLogic Server Administration Console, or you can create WLST scripts to automate Node Manager functionality.

Tip:

Run the setDomainEnv script before the startNodemanager script to ensure that the Oracle Service Bus classes are available to spawned servers. Alternatively, explicitly set classpath in the Oracle WebLogic Server Administration Console before attempting to start the server.

By default, when the Oracle Fusion Middleware Configuration Wizard generates an Oracle Service Bus cluster domain:

  • The Domain Singleton Marker Application (domainsingletonmarker.ear) is targeted to the first managed server in the cluster. For data aggregation to function properly, the server that domainsingletonmarker.ear is targeted to must be started first and must be available when other managed servers are started.

  • The PurgingMDB (msgpurger.ear) is targeted to the first managed server in the cluster. For message purging to function properly, the server where msgpurger.ear is targeted must be available.

For more information on Node Manager, see "Using Node Manager to Control Servers" in Oracle Fusion Middleware Node Manager Administrator's Guide for Oracle WebLogic Server. For a complete overview of methods to start and stop managed servers, see "Starting and Stopping Servers" in Oracle Fusion Middleware Managing Server Startup and Shutdown for Oracle WebLogic Server.

4.4.2 Monitoring Your Servers

Once startup is complete, you can use the Oracle Service Bus Console to verify the status of servers. For information about using Oracle Service Bus Console to monitor your servers, see "Listing and Locating Servers" in "Monitoring" in the Oracle Fusion Middleware Administrator's Guide for Oracle Service Bus.

4.5 Step 5. Deploy an Oracle Service Bus Configuration

You deploy an Oracle Service Bus configuration in a clustered environment following the same procedure as for a non-clustered deployment. For a description of the deployment procedure, see Section 2.4, "Step 4. Deploy an Oracle Service Bus Configuration."

Note:

If you have imported a configuration from a non-clustered environment and that configuration includes proxy services that use File, FTP, or Email transports, you must specify a Managed Server for each of those proxy services. The Managed Server list appears in the Oracle Service Bus Console in clustered Oracle Service Bus domains only.

4.6 Step 6. Update Your Domain as Your Production Environment Changes

Production environments change over time and as application use increases. This section describes how to update your domain in response to common production environment change scenarios:

4.6.1 Adding a Managed Server

As use of Oracle Service Bus grows, you can add new managed servers to your Oracle Service Bus cluster to increase capacity. You add a managed server to the cluster using the Oracle WebLogic Server Administration Console. Depending on your configuration, you may also need to perform administrative tasks using the Oracle Service Bus Console.

4.6.1.1 Adding A Managed Server to an Oracle Service Bus Cluster

To add a new managed server to your Oracle Service Bus cluster, perform the steps below using the Oracle WebLogic Server Administration Console:

  1. Verify that the managed server that you want to add to the Oracle Service Bus cluster is not running. Stop the server, if necessary. For information on how to stop a managed server, see "Starting and Stopping Servers" in Oracle Fusion Middleware Managing Server Startup and Shutdown for Oracle WebLogic Server.

  2. If you have not already done so, in the Change Center, click Lock & Edit.

  3. Expand Environment, and select Clusters. On the Summary of Clusters panel, change the cluster address to include the address of the new server.

  4. Expand Services, and select Persistent Stores. Define a new FileStore on the new server, and assign it to a non-migratable server.

    Note:

    Be sure to create the directory that you specify in the FileStore definition on the new server.
  5. Expand Services and Messaging, and then select JMS Servers. Create a new JMS server on the new server using the new FileStore, and target it to the same non-migratable server.

  6. On the Summary of JMS Servers panel, click the name of the new JMS server. Select jmsResources in the Module Containing Temporary Template list, enter TemporaryTmplt in the Temporary Template Name box, and click Save.

  7. Create the necessary queues and add them to the corresponding distributed destinations by performing the following steps:

    1. If you have not already done so, expand Services > Messaging.

    2. Select JMS Modules, and click jmsResources.

    3. Create a new queue named QueueIn_auto_x, accept the default value for Template, and target the queue to the new server.

      Note:

      For the names of queues specified in these steps, x is the number of managed servers currently in the Oracle Service Bus cluster incremented by 1. For example, if you were adding a managed server to a cluster that currently contains two managed servers, then x equals 3. You would be creating QueueIn_auto_3 in this step, and the names of the queues you create in the next steps would also end with 3.

      While defining QueueIn_auto_x, create a new subdeployment (for example, sub_new), and then select the JMS server on the new server as the target.

      Note:

      You will reuse this subdeployment in the following steps instead of creating a new subdeployment for each queue.
    4. Create wli.reporting.jmsprovider.queue_auto_x, and target it to the new server.

    5. Create wlsb.internal.transport.task.queue.email_auto_x, and target it to the new server.

    6. Create wlsb.internal.transport.task.queue.file_auto_x, and target it to the new server.

    7. Create wlsb.internal.transport.task.queue.ftp_auto_x, and target it to the new server.

    8. Create wli.reporting.jmsprovider_error.queue_auto_x, and target it to the new server.

    9. Create wlsb.internal.transport.task.queue.sftp_auto_x, and target it to the new server.

  8. Expand Services, Messaging, and JMS Modules, and then select the jmsResources module. Add the queues that you created in the previous steps to their corresponding distributed destinations:

    1. Add QueueIn_auto_x to dist_QueueIn_auto.

    2. Add wli.reporting.jmsprovider.queue_auto_x to dist_wli.reporting.jmsprovider.queue_auto.

    3. Add wlsb.internal.transport.task.queue.email_auto_x to dist_wlsb.internal.transport.task.queue.email_auto.

    4. Add wlsb.internal.transport.task.queue.file_auto_x to dist_wlsb.internal.transport.task.queue.file_auto.

    5. Add wlsb.internal.transport.task.queue.ftp_auto_x to dist_wlsb.internal.transport.task.queue.ftp_auto.

    6. Add wli.reporting.jmsprovider_error.queue_auto_x to dist_wli.reporting.jmsprovider_error.queue_auto.

    7. Add wlsb.internal.transport.task.queue.sftp_auto_x to dist_wlsb.internal.transport.task.queue.sftp_auto.

  9. In the Change Center, click Activate.

  10. You can now start the new managed server. For information on how to start a managed server, see "Starting and Stopping Servers" in Oracle Fusion Middleware Managing Server Startup and Shutdown for Oracle WebLogic Server.

  11. If your cluster has an HTTP load balancer (software or hardware), add the new managed server to the server list of the load balancer. For example, if you are using the WebLogic HttpClusterServlet, you should add the new server to the web.xml file for the corresponding application. For more information, see "Load Balancing in a Cluster" in Oracle Fusion Middleware Using Clusters for Oracle WebLogic Server.

4.6.1.2 Updating Business Service Configurations for an Expanded Cluster

If your Oracle Service Bus configuration includes one or more business services that use JMS request/response functionality, then you must also perform the following procedure using the Oracle Service Bus Console after adding the new managed server to the cluster:

  1. In the Change Center, click Create to create a session.

  2. Using the Project Explorer, locate and select a business service that uses JMS request/response. Business services of this type display Messaging Service as their Service Type.

  3. At the bottom of the View Details page, click Edit.

  4. If there is a cluster address in the endpoint URI, add the new server to the cluster address.

  5. On the Edit a Business Service - Summary page, click Save.

  6. Repeat the previous steps for each remaining business service that uses JMS request/response.

  7. In the Change Center, click Activate.

The business services are now configured for operation in the extended domain.

Note:

For business services that use a JMS MesageID correlation scheme, you must edit the connection factory settings to add an entry to the table mapping managed servers to queues. For information on how to configure queues and topic destinations, see "JMS Server Targeting" in Oracle Fusion Middleware Configuring and Managing JMS for Oracle WebLogic Server.

4.6.1.3 Updating Proxy Service Configurations for an Expanded Cluster

If your Oracle Service Bus configuration includes one or more proxy services that use JMS endpoints with cluster addresses, then you must also perform the following procedure using the Oracle Service Bus Console after adding the new managed server to the cluster:

  1. In the Change Center, click Create to create a session.

  2. Using the Project Explorer, locate and select a proxy service that uses JMS endpoints with cluster addresses.

  3. At the bottom of the View Details page, click Edit.

  4. If there is a cluster address in the endpoint URI, add the new server to the cluster address.

  5. On the Edit a Proxy Service - Summary page, click Save.

  6. Repeat the previous steps for each remaining proxy service that uses JMS endpoints with cluster addresses.

  7. In the Change Center, click Activate.

The proxy services are now configured for operation in the extended domain.

4.6.2 Dropping a Managed Server

Using Oracle WebLogic Server administration tools, you can drop a managed server from your Oracle Service Bus cluster. Before deciding to drop a managed server, you should take into account the following considerations:

  • If your Oracle Service Bus configuration includes one or more proxy services that use File, FTP, or Email transports that have pinned transport pollers to the managed server that you want to remove from the cluster, then you must select a different managed server for each of those proxy services before removing the managed server from the cluster.

  • The managed server that hosts the Domain Singleton Marker Application must not be dropped from the cluster. If the managed server that hosts the Domain Singleton Marker Application fails, you must perform a manual migration.

  • If you want to remove the managed server that hosts the Message Reporting Purger application, you must select a different manager server for the Message Reporting Purger and its associated queue (wli.reporting.purge.queue).

For information about dropping a managed server from a cluster, see "Delete Managed Servers" in the Oracle Fusion Middleware Oracle WebLogic Server Administration Console Online Help.

4.6.3 Changing a Business Service in a Cluster

The procedure for changing a business service is the same in both non-clustered and cluster environments. For information about changing a business service, see Section 2.5.1, "Changing a Business Service."

However, the procedure for deploying changes to a business service in a cluster depends on the types of changes made to the business service and the nature of any other changes that might be deployed simultaneously. For more information, see the description of installation strategies in the following section.

4.6.4 Installing a New Version of a Proxy Service in a Cluster

As your business requirements change, you may need to make changes to your proxy services. You can make these changes dynamically online, partially offline, or completely offline. If your changes are backward compatible (that is, you are making no changes to interfaces), you can make your changes dynamically online using the Oracle Service Bus Console. Making other types of changes should be done partially or completely offline, which requires additional system administration steps.

For information about performing online updates, see Section 2.5.3, "Online Configuration Updates."

Making changes that include non-backward compatible changes to proxy service interfaces requires complete offline deployment. To install the new version, follow the procedure below while all servers are operational:

  1. Quiesce all inbound messages.

  2. Confirm all asynchronous backlogged messages have been processed.

  3. Make the necessary changes in the proxy service, and test to verify the proxy service operates as required.

  4. Resume accepting inbound messages.

For more information about backward compatibility and installation strategies, see Section 2.5.2, "Installing a New Version of a Proxy Service."