Creating the queues

To run the message flows that you create, you must create the required WebSphere MQ local queues:

  1. Copy and paste the following script into a text editor:
    ********************************************
    * Define the queues for Main_Flow *
    ********************************************
    DEFINE QL('STAFF_IN') REPLACE
    DEFINE QL('STAFF_OUT') REPLACE
    DEFINE QL('STAFF_FAIL') REPLACE
    DEFINE QL('STAFF_UPDATE_ERROR') REPLACE
    Save the file. You can choose any file name, but the following instructions assume that you have called the file errorhandlerqdefs.tst.
  2. To create the queues, in a command window move to the directory that contains errorhandlerqdefs.tst, and enter the following command, where MB8QMGR is the name of the queue manager that hosts the broker to which you deploy the Error Handler sample:
    runmqsc MB8QMGR < errorhandlerqdefs.tst
  3. Start WebSphere MQ Explorer to check that the queues have been created correctly.

Back to Building the Error Handler sample