Running the Tutorial

To see the complete tutorial for Asynchronous Request Response Operation, run it on both the machines Buyer and Seller.

Note: You can also run the Synchronous Request Response and Notify transactions using the processes in this tutorial.

Running the Tutorial on the Seller Machine

Perform the following steps to run the tutorial on the seller machine:

    Procedure
  1. In TIBCO Business Studio, expand the RESPONDER folder.
  2. Click Asynchronous Request Response > Receive Async Request.
  3. Go toRead File > Input Tab > ReadActivityInput and verify that the path given in the fileName field is valid.
  4. Click Run Configurations.
  5. Click Start testing viewed process.
  6. The Select Process to Load page is displayed.

    Figure 6: Select Process to Load

  7. Select the Receive Async Request(current) checkbox.
  8. Click Load Selected.

    After the request is received from the Buyer machine, this process receives the RESPONDER.REQUEST message and then sends the RESPONDER.RESPONSE message to BusinessConnect Container Edition.

Running the Tutorial on the Buyer Machine

Perform the following steps to run the tutorial on the buyer machine:

    Procedure
  1. In TIBCO Business Studio, click INITIATOR > Asynchronous Request Response.
  2. Click Send ASync Request process.
  3. Click SendRequest activity.
  4. Enter Buyer in the fromTP field and Seller in the toTP field on the Input tab.

    Figure 7: SendRequest (Input)

  5. Go toRead File > Input Tab > ReadActivityInput and verify that the path given in the fileName field is valid.

  6. Click Apply and Save.
  7. Click Run Configurations.
  8. Select two processes:
    1. INITIATOR/Asynchronous Request Response/Send Async Request
    2. INITIATOR/Asynchronous Request Response/Receive Response processes
  9. Click Load selected.

Figure 8: Select SendAsyncRequest Operation

It sends an INITIATOR.REQUEST to the INITIATOR BusinessConnect Container Edition. At the same time, the Receive Response activity receives the INITIATOR.RESPONSE message.

Figure 9: Send INITIATOR.REQUEST and Receive INITIATOR.RESPONSE

Figure 10: RESPONDER AsynchronousRequestResoponse Process