Setting up the HTMLSampleBP application on WebSphere Business Integration Server Foundation 5.1.1 running Windows(R), Linux(R) and Unix Platform

If you did a typical installation and do not have a sample container, you must configure your business process container manually. For details, refer to the section Configuring the business process container in the WebSphere(R) Application Server information center.
Note: To check whether you have a business process container configured on your server, from the administrative console navigation pane, select Applications > Enterprise Applications . Your process container is available if an application named BPEContainer_<hostName>_<serverName> is in the list of enterprise applications.

If you did a custom installation and choose to configure a sample business process container in the Installation Wizard, do the following:

  1. Copy external files
    1. Extract the BTTHTMLSampleWeb.war file from BTTHTMLSample.ear, then extract the \dse directory from the BTTHTMLSampleWeb.war.
    2. On your OS system, create a directory /dse.
    3. Copy all the files in the \dse directory you extracted from BTTHTMLSampleWeb.war to the \dse directory you created in step 1.a.
  2. Create database and tables.
    1. Run DB2(R) CREATE DATABASE SAMPLE in DB2 command window to create a database named sample. You can set user and password for database SAMPLE. For example, set both user and password as db2inst1.
    2. Create three tables:
      1. Create a directory called /temps.
      2. Copy createCHATables.ddl to directory /temps.
      3. Shift to /temps directory and open DB2 Command Window.
      4. In DB2 Command Window, run DB2 CONNECT TO SAMPLE USER DB2INST1 USING DB2INST1
      5. In DB2 Command Window, run db2 -tvf createCHATables.ddl

        You will see messages indicating that CHAChildren , CHAInstance and CHAControl tables have been created successfully.

  3. Open a Web Browser, input the following URL to open the Administrative Console:

    http://serveName:9090/admin

  4. Import BTTHTMLSampleBPEAR.ear into WebSphere Business Integration Server Foundation
    1. In the navigation bar, select Applications > Install new Application .
    2. In the main frame, click Browse and locate HTMLSampleBPEAR.ear file. Click Next
    3. In Step2 frame, specify the DataBase Type.
    4. In Deploy EJBs Option - Database Type field, use the default value. For DB2, select DB1UDB_V81.
    5. In Step4 frame, input jdbc/CHADataSource for JNDI Name. Use default value for other settings
    6. In setp10 frame, Click Finish.
    7. Click Save to Master Configuration
    8. Click Save to finish importing HTMLSampleBPEAR.ear.
  5. Set up JDBC Providers
    1. In the navigation bar, select Resource > JDBC Providers .
    2. In the main frame, click New
    3. In JDBC Providers field, select the JDBC Provider. It must be the (XA) JDBC Provider. Click OK.
    4. For other settings, use default value, click OK to return to the JDBC Providers page.
    5. Click the JDBC Provider Name.
    6. In Additional Properties section, click Data Source .
    7. Click New.
    8. Use default value. Click OK to return to Data Sources page.
    9. Click Data Source Name.
    10. In the Related Items section, click J2C Authentication Data Entries.
    11. 11) Click New and do the following settings:
      • Alias: CHA
      • User ID: db2inst1
      • Password: db2inst1
    12. Click OK to save the value.
    13. In the navigation bar, select Resource > JDBC Providers > JDBC Provider Name > Data Source .
    14. Click Data Source Name
    15. Select value for Component-managed Authentication Alias and Container-managed Authentication Alias fields. Click OK to return to Data Sources page.
    16. Click Data Source Name
    17. In Additional Properties section , click Custom Properties.Set the databaseName and serverName. Use the default value for other settings, click save on the top of the page.
    18. In the navigation bar, select Resource > JDBC Providers > JDBC Provider Name > Data Source select the Data Source and click Test Connection. You will see some messages indicating that Test Connection was successful.
  6. Install DummySnaLu0 in the <toolkit root>\jars directory in the WebSphere Application Server:
    1. In Websphere Administration Console, select Resources\Resource Adapter\Install RAR and add the following setting:
      • name: dummysnalu0
    2. Define JAAS Authentication entries:
      1. Select Security\JAAS Configuration\J2C Authentication Data.
      2. Click New
      3. Add the following parameters:
        • Alias: sna
        • User id: sna
        • Password: sna
    3. Define the J2C Connection Factories:
      1. Select Resources\Resource Adapter\dummysnalu0
      2. Click J2C Connection Factories
      3. Click New
      4. Add the following parameters
        • Name: snalu0
        • JNDI name: snalu0
        • Component-managed Authentication alias: sna
        • Container-managed Authentication alias: sna
    4. Select Resources\ Resource Adapter\dummysnalu0\J2C Connection Factories\snalu0, click Custom Properties, change the following parameters:
      • TestFile: http://127.0.0.1:9080/BTTHTMLSampleBPWeb/response.res
      • userName: sna
      • userPassword: sna
  7. Start the Applications
    1. In the navigation bar, select Applications > Enterprise Applications .
    2. Select BTTHTMLSampleBPEAR.ear and click Start.
  8. Open a Web Browser, input the following URL to run the HTMLSampleBPEAR.ear:

    http://serverName:9080/BTTHTMLSampleWeb/btt/html/sign/prepareSignIn.do