Customer bid requests

The federated application provides the customer bid requests and status of bids that is required of the new merged Cottonwood Distributors enterprise.

The customer bid requests are sent through the Web services. The actual request is a message that is routed to a WebSphere® message queue. Cottonwood Distributors has an application on that message queue that listens for activity so that the programs can retrieve database requests from the queue as the requests enter the queue. This listener application invokes a set of actions to process the requests. The listener balances the load that is introduced by the number of bid requests that enter the queue and processes the customer bid requests with the following steps:
  • The customer bid Web services request writes a message to the queue.
  • The listener application invokes a Db2® function to extract the order information from the request.
  • The application runs a read-only query to obtain a quote for the requested part.
  • The application inserts a record into the local table to record the order.
The following graphic displays the flow for the customer orders:
Figure 1. Cottonwood customer order requests
This graphic displays the Customer order requests and the flow from the SQL statement, through the message queue, to the final output.