You need a database with three tables and an ODBC definition to run the WBI JDBC Adapter Migration sample. To access the database the broker must be configured with a user identifier and password.
In the sample environment the three database tables contain information about Customers, Addresses and Invoices. Foreign Keys are defined so that a Customer row references an Address row, and an Invoice row references a Customer row. Triggers are defined so that a change to any of the tables is stored in the IBM_EVENTS table.
Complete the following tasks to set up the database tables:
Follow the instructions that are relevant to your database manager:
Complete the following tasks to setup the database environment for the broker:
For instructions, see Enabling ODBC connections to the databases in the WebSphere Message Broker documentation.
Use the mqsisetdbparms command to specify a user identifier and password that the broker can use with the DBINPUT 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 CUSTOMER table name is USERID.CUSTOMER.
mqsisetdbparms MB8BROKER -n DBINPUT -u <user ID> -p <password>
mqsireload MB8BROKER -e AdapterMigration