Creating the WebSphere MQ queues

To run the Airline Reservations message flows that you create, you must also create the required WebSphere MQ local queues.

The following script creates the queues that you need for all the Airline Reservations message flows:

********************************************
*  Define the queues for XML_Reservation   *
********************************************
DEFINE QL('XML_RESERVATION_IN')   REPLACE
DEFINE QL('XML_RESERVATION_OUT')  REPLACE
DEFINE QL('XML_RESERVATION_FAIL') REPLACE
*****************************************************
*  Define the queues for XML_PassengerQuery         *
*****************************************************
DEFINE QLOCAL ('XML_PASSENGERQUERY_IN') REPLACE
DEFINE QLOCAL ('XML_PASSENGERQUERY_OUT') REPLACE
DEFINE QLOCAL ('XML_PASSENGERQUERY_FAIL') REPLACE
********************************************
*  Define the queues for XML_FlightQuery   *
********************************************

DEFINE QLOCAL ('XML_FLIGHTQUERY_FLIGHT') REPLACE
DEFINE QLOCAL ('XML_FLIGHTQUERY_IN') REPLACE
DEFINE QLOCAL ('XML_FLIGHTQUERY_OUT') REPLACE
DEFINE QLOCAL ('XML_FLIGHTQUERY_PASSENGERS') REPLACE
DEFINE QLOCAL ('XML_FLIGHTQUERY_REPLIES') REPLACE
DEFINE QLOCAL ('XML_FLIGHTQUERY_TIMEOUT') REPLACE
DEFINE QLOCAL ('XML_FLIGHTQUERY_FAIL') REPLACE
***********************************************
*  Define the queues for XML_CancelReservation*
***********************************************
DEFINE QL(XML_CANCELRESERVATION_IN) REPLACE
DEFINE QL(XML_CANCELRESERVATION_OUT) REPLACE
DEFINE QL(XML_CANCELRESERVATION_FAIL1) REPLACE
DEFINE QL(XML_CANCELRESERVATION_FAIL2) 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 airlineqdefs.tst.
  2. In a command window, move to the folder containing airlineqdefs.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 Airline Reservations sample:
  3. runmqsc WBRK61_DEFAULT_QUEUE_MANAGER < airlineqdefs.tst

  4. Start WebSphere MQ Explorer and check that the queues have been created.

Main Page icon   Back to Building the Airline Reservations sample