Deploying the WOLA EJBs manually

To complete the configuration of WOLA, you deploy an EJB application that implements the WebSphere® Optimized Local Adapters (WOLA) interface on WebSphere Application Server for z/OS® V8.5.

About this task

The WOLA EAR file contains two EJB modules:
  • res-wola-proxy-ejb: the entry point for the WOLA invocation. It accepts inbound requests from the API stub and delegates the requests to the worker EJB module.
  • res-wola-worker-ejb: the EJB module that forwards the requests to Rule Execution Server.
The following procedure guides you through the installation of the WOLA EAR file on WebSphere Application Server for z/OS.

Procedure

  1. In the WebSphere Application Server console, select New Application > New Enterprise Application.
  2. Specify the path of the EAR file as <InstallDir>/executionserver/applicationservers/WOLA/jrules-res-wola.ear. Click Next.
  3. In the "Preparing for the application installation" pane, perform the following actions:
    1. Select Detailed - Show all installation options and parameters.
    2. Expand Choose to generate default bindings and mappings.
    3. Select the check box Generate Default Bindings and click Next.
  4. In Step 1, click Next to accept the default settings.
  5. In Step 2, take one of the following actions:
    1. If you have only one server, skip this step.
    2. If you have more than one server, select the server to which you want to deploy the application, select the check box for the two modules, and click Next.
  6. In Step 3, click Next to accept the default settings.
  7. In Step 4, click Next to accept the default settings.
  8. In Step 5, provide the following JNDI names for the beans:
    1. For the EJB module res-wola-proxy-ejb-<version>.jar: select the option JNDI name for all interfaces Target Resource JNDI Name and enter the name ejb/com/ibm/rules/wola/ProxyExecutionSessionBean.
    2. For the EJB module res-wola-worker-ejb-<version>.jar: select the option JNDI name for all interfaces Target Resource JNDI Name and enter the name ejb/com/ibm/rules/wola/PojoExecutionSessionBean.
    3. Click Next.
    Important: The JNDI names of the modules must be distinct, otherwise you can get a NameAlreadyBoundException when you start the EJB.
  9. In Step 6, click Next.
  10. In Step 7 on WebSphere Application Server V8.5, map the EJB reference for the proxy bean to the worker bean by entering ejb/com/ibm/rules/wola/PojoExecutionSessionBean in the Target Resource JNDI Name column for res-wola-proxy-ejb-<version>.jar. Click Next.
  11. In Step 8 on WebSphere Application Server V8.5, complete the following actions:
    1. For the res-wola-worker-ejb resource reference, eis/XUConnectionFactory, click Browse.
    2. Select eis/XUConnectionFactory as the Target Resource JNDI Name.
    3. For the res-wola-worker-ejb resource reference, jdbc/resdatasource, click Browse.
    4. Select jdbc/resdatasource as the Target Resource JNDI Name.
    5. Click Next.

    If you cannot see these options when you click Browse, ensure that you have completed all the steps for installing Rule Execution Server on WebSphere Application Server for z/OS.

  12. In Step 9, click Next.
  13. In Step 10, click Next.
  14. In Step 11, click Finish.
  15. After the EJB deployment is complete, click Save to save it to the WebSphere Application Server master configuration.
  16. Start the application Decision Server WOLA EndPoint:
    1. In the WebSphere Application Server console, select Applications > Application Types > WebSphere enterprise applications.
    2. In the Enterprise Applications page, select the check box Decision Server WOLA EndPoint.
    3. Click Start.