Creating the queues

To run the message flows that you create, you must create the required WebSphere MQ local queues. The following script, when it is run, creates the queues that you need:

********************************************
* Define the queues for Main_Flow *
********************************************
DEFINE QL('STAFF_IN') REPLACE
DEFINE QL('STAFF_OUT') REPLACE
DEFINE QL('STAFF_FAIL') REPLACE

To create the queues:

  1. Copy and paste the script into a text editor, and save the file. You can choose any file name but the following instructions assume that you have called the file errorhandlerqdefs.tst.
  2. In a command window, move to the directory that contains errorhandlerqdefs.tst, and enter the following command, where WBRK61_DEFAULT_QUEUE_MANAGER is the name of the queue manager that hosts the broker to which you deploy the Error Handler sample:

    runmqsc WBRK61_DEFAULT_QUEUE_MANAGER < errorhandlerqdefs.tst

  3. Start WebSphere MQ Explorer to check that the queues have been created correctly.

Main Page icon   Back to Building the Error Handler sample