Skip Headers
Oracle® Healthcare Master Person Index User's Guide
Release 4.0

E68430-01
Go to Table of Contents
Contents
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

7 Installing OHMPI on a WebLogic Cluster

You can deploy the Oracle Healthcare Master Person Index (OHMPI) application on a WebLogic cluster with preconfigured managed servers. The Person Template MPI application is used as an example here to describe the process of configuring the WebLogic server and deploying the Person MPI application to a WebLogic cluster. Deploy the complete MPI application to a single WebLogic cluster. These instructions are applicable to OHMPI 4.0 and WebLogic 12c.

For detailed information on WebLogic clustering feature and capabilities, see Oracle Fusion Middleware Using Clusters for Oracle WebLogic Server Guide.

This chapter contains the following sections:

Installing OHMPI Using OHMPI Installer

You can install OHMPI using the OHMPI installer by following the instructions in the OHMPI Installation Guide. Use the platform-specific installer appropriate to the operating system.

Creating and Configuring a WebLogic Machine and Node Manager

To create and configure WebLogic machine and node manager:

  1. Log in to the WebLogic administration console.

  2. In the left pane, click on your domain (for example, domain1212) and expand Environment.

  3. Click Machines and then click Lock & Edit.

  4. Click New.

    The Create a New Machine screen appears.

  5. Enter ohmpi_machine (or any other preferred name) in the Name field.

  6. Click Next.

  7. Specify the node manager properties.

    The node manager runs on localhost with SSL port 5556.

  8. Click Finish.

  9. Click Activate Changes.

Creating and Configuring the OHMPI Cluster

You can create and configure the OHMPI cluster in the following ways:

Creating and Configuring a Standard Cluster

To create and configure a standard cluster:

  1. Log in to the WebLogic administration console.

  2. In the left pane, click on your domain (for example, domain1212) and expand Environment.

  3. Click Clusters.

  4. Click Lock & Edit.

  5. From the New drop-down list, select Cluster.

    The Create a New Cluster screen appears.

  6. Enter cluster name in the Name field.

    For example, ohmpi_cluster.

  7. From the Messaging Mode drop-down list, select Unicast.

  8. Click OK.

  9. In the Summary of Clusters pane, click ohmpi_cluster.

  10. In the Settings for ohmpi_cluster screen, click the Servers tab.

  11. Scroll down to the Servers table and click Add.

  12. Enter server name in the Server Name field.

    For example, ohmpi_server-1.

  13. Enter server listen address in the Server Listen Address field.

    For example, localhost.

  14. Enter listen port for the first server in the Server Listen Port field.

    For example, 8001.

  15. Click Finish.

  16. Click ohmpi_server-1 to configure the server.

    The Settings for ohmpi_server-1 screen appears.

  17. From the Machine drop-down list, select ohmpi_machine.

  18. Select Listen Port Enabled and SSL Listen Port Enabled and enter the SSL listen port in the SSL Listen Port field.

    For example, 8101.

  19. Click Save.

  20. Repeat steps 15 through 18 to specify settings for ohmpi_server-2.

    Note:

    Specify 8002 as the Server Listen Port and 8102 as the SSL listen port for ohmpi_server-2.
  21. Click Activate Changes.

Creating and Configuring a Dynamic Cluster

To create and configure a dynamic cluster:

  1. Log in to the WebLogic administration console.

  2. In the left pane, click on your domain (for example, domain1212) and expand Environment.

  3. Click Clusters.

  4. Click Lock & Edit.

  5. From the New drop-down list, select Dynamic Cluster.

    The Create a New Dynamic Cluster screen appears.

  6. Enter cluster name in the Name field.

    For example, ohmpi_cluster.

  7. From the Messaging Mode drop-down list, select Unicast.

  8. Click Next.

  9. Enter 2 in the Number of Dynamic Servers field.

    Note:

    Do not change the default values.
  10. Click Next.

  11. Select the required machine configuration. In this example, select Use a single machine for all dynamic servers.

  12. Click Next.

  13. Enter 8000 in the Listen Port for First Server field.

  14. Enter 8100 in the SSL Listen Port for First Server field.

  15. Click Next.

  16. Review the configurations you have selected.

  17. Click Finish.

  18. Click Activate Changes.

Creating Application Server Resources to Target to the OHMPI Cluster

Creating Data Sources and Data Store

To create a JDBC data source:

  1. Log in to the WebLogic administration console.

  2. Click Lock & Edit.

  3. In the left pane, click on your domain (for example, domain1212) and expand Services.

  4. Select Data Sources.

    Note:

    For the Person MPI application, you must create the following data sources: <Application>DataSource and <Application>SequenceDataSource.

    For information on how to create the JDBC data sources for an MPI application project, see To Create JDBC Data Resources for an MPI Application Project for Oracle.

  5. In the Select Targets section, select the ohmpi_cluster check box.

  6. Select the All servers in the cluster option.

  7. Click Finish.

To create a JMS data source:

  1. In the Summary of JDBC Data Sources screen, select Generic Data Source from the New drop-down list.

    The Create a New JDBC Data Source screen appears.

  2. Enter a data source name in the Name field.

    For example, PersonJMSDataSource.

  3. Enter JNDI name in the JNDI Name field.

    For example, jdbc/PersonJMSDataSource.

  4. Click Next.

  5. Under JDBC Data Source Properties, select Oracle's Driver (Thin) for Service connections; Versions: 9.0.1 and later from the Database Driver drop-down list.

  6. Click Next.

  7. Deselect the Supports Global Transactions check box.

  8. Click Next.

  9. Enter values in the Database Name, Host Name, Port, Database User Name, and Password fields for the new JDBC data source.

  10. Click Next.

  11. Click Test Configuration to ensure that the connection is good.

  12. Click Next.

  13. In the Select Targets section, select the ohmpi_cluster check box.

  14. Select the All servers in the cluster option.

  15. Click Finish.

To create a data store:

  1. Log in to the WebLogic administration console.

  2. In the left pane, click on your domain (for example, domain1212) and expand Services.

  3. Click Persistent Stores.

    The Summary of Persistent Stores screen appears.

  4. From the New drop-down list, select Create JDBCStore.

    The Create a New JDBC Data Source screen appears.

  5. Enter a name for the JDBC Data Source in the Name field.

    For example, PersonJMSJDBCStore.

  6. From the Target drop-down list, select ohmpi_server-1 (migratable).

    Note:

    If you use a dynamic cluster, the Target is the entire cluster (ohmpi_cluster).
  7. From the Data Source drop-down list, select PersonJMSDataSource.

  8. Click OK.

  9. Click Activate Changes.

Creating a JMS Module with JMS Connection Factory and JMS Topic

To create a JMS module with JMS connection factory and JMS topic:

  1. Log in to the WebLogic administration console.

  2. In the left pane, click on your domain (for example, domain1212) and expand Services.

  3. Expand Messaging and click JMS Modules.

  4. Click Lock & Edit.

  5. Click New.

    The Create JMS System Module screen appears.

  6. Enter JMS server name in the Name field.

    For example, PersonJMSModule.

  7. Click Next.

  8. In the Targets section, select the ohmpi_cluster check box.

  9. Select the All servers in the cluster option.

  10. Click Next.

  11. Select the Would you like to add resource to this JMS system module? check box.

  12. Click Finish.

  13. In the Summary of Resources table, click New.

  14. Select the Connection Factory option.

  15. Click Next.

    The Connection Factory is created successfully.

  16. Enter connection factory name in the Name field.

    For example, PersonOutBoundSender.

  17. Enter JNDI Name in the JNDI Name field.

    For example, jms/PersonOutBoundSender.

  18. Click Next.

    Note:

    Do not change the default values.
  19. Click Finish.

To create a JMS topic:

  1. In the Create a New JMS System Module Resource screen, select the Distributed Topic option.

  2. Click Next.

  3. Enter JMS Topic name in the Name field.

    For example, PersonTopic.

  4. Enter JNDI Name in the JNDI Name field.

    For example, jms/PersonTopic.

  5. Click Next.

    Note:

    Do not change the default values.
  6. Click Finish.

    The JMS distributed topic is created successfully.

  7. Click Activate Changes.

Starting Node Manager and Managed Servers

To start node manager and managed servers:

  1. From the operating system prompt, start node manager by executing the following commands:

    • <prompt>./startNodeManager.sh

      or

    • <prompt>startNodeManager.cmd

    Note:

    The command is located in the WebLogic domains/<your domain>/bin directory.
  2. Start all managed servers from the WebLogic administration console.

  3. Expand Environment.

  4. Select Cluster and then select ohmpi_cluster.

  5. Click Control and select all the managed server instances.

    For example, ohmpi_server-1 and ohmpi_server-2.

  6. Click Start.

  7. Click Yes.

  8. Wait until all the managed servers are in the Running state.

    Note:

    The page does not refresh automatically.

Deploying the MPI Application to the OHMPI Cluster

To deploy the MPI application to the OHMPI cluster:

  1. Under Deployments, click Install.

  2. Browse the MPI Application's deployable EAR file (for example, C:/NetBeansProjects/Person/dist/Person.ear).

  3. Click Next.

  4. Select the Install this deployment as an application option.

  5. Click Next.

  6. In the Select deployment targets section, select the ohmpi_cluster check box.

  7. Select the All servers in the cluster option as the deployment target.

  8. Click Next.

  9. Select the Copy this application onto every target for me option.

  10. Click Finish.

  11. Click Activate Changes.

    Note:

    The deployed application must be in the Prepared state.
  12. Click Lock & Edit.

  13. Select the application you deployed and click Start.

  14. Select Servicing All Requests.

  15. Click Yes to confirm.

    Wait until the state changes to Active.

Deploying a Proxy Web Application for Balancing HTTP Requests

To deploy a proxy web application for balancing HTTP requests:

  1. Create a web application (for example, LoadBalancerProxyWebApp) in NetBeans for the WebLogic server with the following folder structure:

    Figure 7-1 Folder Structure of LoadBalancerProxyWebApp

    Description of Figure 7-1 follows
    Description of ''Figure 7-1 Folder Structure of LoadBalancerProxyWebApp''

  2. Modify the weblogic.xml file:

    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
    <context-root>/</context-root>
    </weblogic-web-app>
    

    Note:

    The <context-root> deployment parameter is set to /. This makes the proxy servlet as the default web application for the proxy server.
  3. Modify the web.xml file.

    Note:

    Inside the web.xml file, the parameter value for WebLogicCluster must include all the servers on which the MIDM web application is deployed. The parameter value takes the format of <host1>:<port1>|<host2>:<port2>|…, where:
    • host1 and host2 are the host names of servers in the cluster.

    • port1 and port2 are the ports where the corresponding host is listening for HTTP requests.

    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
     http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <servlet>
            <servlet-name>HttpClusterServlet</servlet-name>
            <servlet-class>weblogic.servlet.proxy.HttpClusterServlet</servlet-class>
            <init-param>
                <param-name>WebLogicCluster</param-name>
                <param-value>localhost:8001|localhost:8002</param-value>
            </init-param>
            <init-param>
                <param-name>verbose</param-name>
                <param-value>true</param-value>
            </init-param>
            <init-param>
                <param-name>DebugConfigInfo</param-name>
                <param-value>ON</param-value>
            </init-param>
        </servlet>
        <servlet-mapping>
            <servlet-name>HttpClusterServlet</servlet-name>
            <url-pattern>/</url-pattern>
            <url-pattern>*.jsp</url-pattern>
            <url-pattern>*.jspf</url-pattern>
            <url-pattern>*.jsf</url-pattern>
            <url-pattern>*.htm</url-pattern>
            <url-pattern>*.html</url-pattern>
            <url-pattern>*.do</url-pattern>
            <url-pattern>*.jpg</url-pattern>
            <url-pattern>*.gif</url-pattern>
            <url-pattern>*.css</url-pattern>
            <url-pattern>*.js</url-pattern>
            <url-pattern>*.png</url-pattern>
            <url-pattern>*.action</url-pattern>
        </servlet-mapping>
    </web-app>
    
  4. Build the LoadBalancerProxyWebApp project.

  5. Deploy LoadBalancerProxyWebApp on the system acting as the load balancer. (For example, AdminServer).

  6. Access the MIDM application using the following URL:

    http://<LoadBalancer_IP_Address>:7001/PersonMIDM.

Modifying the EJB Client-Side JNDI Properties to Point to the Cluster Provider URL

To modify the EJB client-side JNDI properties to point to the cluster provider URL:

  1. If there is an OHMPI client application, change its JNDI properties to use the new cluster provider URL. List all host and port numbers for all the managed servers in the cluster as a comma separated value.

    For example:

    java.naming.provider.url=t3://<host1>:<port1>,<host2>:<port2>,<host3>:<port3>
    
  2. OHMPI provides Real-Time Loader, a Java EJB client, that takes advantage of the clustered EJBs for balancing load. To use a cluster provider URL, you can define the following property in the Real-time Loader's batch file (for example, run-realtime-loader.bat):

    set JAVA_NAMING_PROVIDER_URL=t3://<host1>:<port1>,<host2>:<port2>,<host3>:<port3>