Setting up the database

To run the Error Handler sample you require one database that contains a table. An ODBC definition for the database is also required and the broker must be configured with a user identifier and password to use when you are accessing the database.

Complete the following tasks to set up the database environment:

  1. Create the database and ODBC definition.

    Follow the instructions that are relevant to your database manager:

  2. Specify the user identifier and password associated with the data source name STAFFDB.

    Use the mqsisetdbparms command to specify a user identifier and password for the broker to use with the STAFFDB data source. This user identifier must be the same user identifier that you used when you created the database in the previous step. The user identifier determines the database schema name, and the broker must use the same user identifier when accessing the table. For example, if your user identifier is USERID, the fully qualified name of the ERRORS table name is USERID.ERRORS.

    1. Open a command console window in which you can run WebSphere Message Broker commands.
    2. Enter the following command to specify the user identifier and password.
      mqsisetdbparms MB8BROKER -n STAFFDB -u <user ID> -p <password>

Back to sample home