Import projects
- Click Import to import the implementation of a retail solution into your workspace.The solution contains the application BTM_RETAIL_APP and the shared library BTM_RETAIL_SHARED_LIBRARY.
- Main_Process_Order_Flow.msgflow is the entry point of the application. It routes an incoming message to Order_Item_Request_Flow.msgflow that receives the request.
- The request is then processed by Order_Item_Despatch_Flow.msgflow. Finally, Order_Item_Response_Flow.msgflow sends a confirmation.
- Shared library BTM_RETAIL_SHARED_LIBRARY contains the message model used by the solution.
- All message flows have monitoring events configured on a number of their message nodes.
For this tutorial, all monitoring events use $Root/XMLNSC/btm_retail/customerNumber as the global correlator. To see an example, open Main_Process_Order_Flow.msgflow, select "Receive Retail Request" node, and click the Monitoring tab in the Properties view.
- BTM uses these correlators to group together events about the same order coming from different flows.
Create queues
The solution uses WebSphere MQ queues to route messages between the applications.
- Create the default IBM Integration Bus queues in WebSphere MQ by completing the following steps:
- Open the IBM Integration Console.
- In the console window, type the following command:
server\sample\wmq\iib_createqueues qmgr
where
qmgr is the queue manager name.
- Create the queues used by the MQ nodes in this tutorial by completing the following steps:
- In the console window, type the following command:
runmqsc qmgr {WorkspacePath}/BTM_RETAIL_APP/create_queues.mqsc
where
qmgr is the queue manager name and WorkspacePath is the location of your current Toolkit workspace.
- Associate the default integration node with the queue manager by completing the following steps:
- In the console window, stop the default integration node by typing the following command:
mqsistop -i TESTNODE_userid
- Associate the queue manager with the default integration node, TESTNODE_userid by typing the following command:
mqsichangebroker TESTNODE_userid -q qmgr
where
qmgr is the queue manager name
- Start the default integration node by typing the following command:
mqsistart TESTNODE_userid
Create database
The solution requires a database to record and store business transaction data.
- Open a DB2 command window and run the following command to create the MBRECORD database and monitoring events tables:
db2 -tvf {IIBInstallDir}/server/ddl/db2/DataCaptureSchema.sql
where
IIBInstallDir is the location of the IBM Integration Bus installation.
Note:To customize the database or schema name used by business transaction monitoring, edit the DataCaptureSchema.sql file before running the command.
- In the DB2 command window, run the following command to create the tables for recording and storing business transaction data:
db2 IIBInstallDir/server/ddl/db2/BusinessCaptureSchema.sql
Note: If you modified the name of the database in the previous step, you must update the database name in the BusinessCaptureSchema.sql file before you run the command.
- Define MBRECORD as the ODBC data source name (DSN) for the database MBRECORD.
Follow the link Enabling ODBC connections to the databases in the Find out more section below for instructions on configuring an ODBC data source for your operating system.
Note: If you modified the name of the database in the previous steps, use the same name for your DSN name in this step.
- Set a user ID and password for the integration node to use when connecting to the database by completing the following steps:
- Open the IBM Integration Console.
- In the console window, run the following command:
mqsisetdbparms TESTNODE_userid -n MBRECORD -u id -p password
where
TESTNODE_userid is the default integration node
id and password are the user ID and password that are used to connect to the MBRECORD database
- Optional: Verify the user id and password for the database is set correctly by running the following command:
mqsireportdbparms TESTNODE_userid -n MBRECORD -u id -p password
- Restart the integration node by running the following commands in the console window:
-
mqsistop TESTNODE_userid
- (After the integration node is stopped.)
mqsistart TESTNODE_userid
- Optional: Test the connection to the database MBRECORD by running the following command in the console window:
mqsicvp TESTNODE_userid -n MBRECORD