Building the Airline Reservations sample

All the files that you need to run the Airline Reservations sample are supplied, but if you prefer to create the sample yourself, follow the instructions below:

You do not create a message set for the Airline Reservations sample because the message flows are designed to be run with self-defining XML messages. In a self-defining, or generic, XML message, all the information about the structure of the message is held within the message itself.

The message flow project and ESQL file

Before you can create a message flow, you must create a new message flow project. If you have not imported the sample from the Samples Gallery, name the message flow project XML Airline Message Flows. If you have imported the sample from the Samples Gallery, a message flow project called XML Airline Message Flows already exists, so you must choose an alternative name; the instructions in the section below assume that you have named the message flow Airline XML Messageflows. For more information, see Creating a message flow project.

You must also create an ESQL file in the message flow project you have created. The instructions in the section below assume that you have named the ESQL file message_flow_name, where message_flow_name is the name of the message flow. For more information, see Creating an ESQL file.

 

The message flows

When you have created the the message flow project, create each of the following message flows:

  1. Creating the XML_Reservation message flow
  2. Creating the XML_PassengerQuery message flow
  3. Creating the XML_FlightQueryOut message flow
  4. Creating the XML_FlightQueryReply message flow
  5. Creating the XML_FlightQueryIn message flow
  6. Creating the XML_CancelReservation message flow

At run time, the XML_FlightQueryOut, XML_FlightQueryReply, and XML_FlightQueryIn message flows function as a single message flow, which is referred to in this documentation as the XML_FlightQuery message flow.

The database

To run the Airline Reservations sample, you must create a database containing two tables, one of which is populated with sample data when you run the supplied script. The instructions assume that you are using DB2 Universal Database and a script is provided to create and populate a DB2 database for the Airline Reservations sample. For more information, see Creating and populating the database.

The WebSphere MQ queues

To run the XML_Airline message flows that you create, you must create the WebSphere MQ local queues that the message flows need. For more information, see Creating the WebSphere MQ queues.

Back to sample home