To run the Message Routing sample by using a database you require a database with a table that is populated with sample data as part of the setup. An ODBC definition for the database is also required and the integration node must be configured with a user identifier and password to use when accessing the database.
Complete the following tasks to set up the database environment:
Follow the instructions that are relevant to your database manager:
Use the mqsisetdbparms command to specify a user identifier and password for the integration node to use with the ROUTING 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 integration node must use the same user identifier when accessing the table. For example, if your user identifier is USERID, the fully qualified name of the ROUTING_TABLE table name is USERID.ROUTING_TABLE.
mqsisetdbparms IB9NODE -n ROUTING -u <user ID> -p <password>
mqsireload IB9NODE -e MessageRoutingSampleUsingDatabase
When you configure a FileRead node, you must set the directory from which you want to read files. You can set either an absolute path or a relative path. If you set a relative path, you must set the directory root for the integration node. You can set the directory root by setting the environment variable MQSI_FILENODES_ROOT_DIRECTORY.
To run this sample, set the environment variable as follows:
The rest of this documentation assumes that you have set the environment variable as specified.
To set up the Message Routing Sample by using a file:
SET MQSI_FILENODES_ROOT_DIRECTORY=c:\MQSIFileRead
export MQSI_FILENODES_ROOT_DIRECTORY="/tmp/MQSIFileRead"