Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 9 Request-Response Service for Asynchronous Communication : Example Description

Example Description
This example simulates the Asynchronous communication paradigm that is supported by the adapter Request-Response Service. The Tuxedo service, based on the PRODUCTID that it received from the data sent by the invoking client, returns the CATEGORYID, PRODUCTNAME, DESCRIPTION, UOM, PRICE corresponding to that PRODUCTID.
Following are the flow of events:
1.
Enter the values for Product ID and ServiceName in the Get_input.xml as shown below:
 
<?xml version="1.0" encoding="UTF-8"?>
<Products xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Product>
<PRODUCTID>1</PRODUCTID>
<ServiceName>PRODINFO</ServiceName>
</Product>
</Products>.
2.
The TIBCO ActiveMatrix BusinessWorks process, rpc reads the input data and sends the request.
3.
The Request-Response service, which is listening on the same subject as that of the invoking client (TIBCO ActiveMatrix BusinessWorks), receives the request.
4.
The Request-Response service invokes the Tuxedo Service PRODINFO.
5.
The Tuxedo service, based on the PRODUCTID that is received, queries the flat file - inputdata.txt.
6.
7.
The TIBCO ActiveMatrix BusinessWorks process, rpc then writes this data into the Get_output.xml.
Location of the Example Files
Files provided with this example are given in the next table. The files are located in the following locations:
TIBCO_HOME\adapter\adtuxedo\version_number\examples\Asynchronous\Product
TIBCO_HOME\adapter\adtuxedo\version_number\examples\Asynchronous\Product\BusinessWorks
Project zip that contains the preconfigured adapter Subscription service and the TIBCO ActiveMatrix BusinessWorks process.
Contains commands required to get the Tuxedo service running on Windows (Sets the required environment variables, creates executables, loads the ubbconfig file and boots the Tuxedo service)
Contains commands required to get the Tuxedo service running on UNIX (Sets the required environment variables, creates executables, loads the ubbconfig file and boots the Tuxedo service). This script should be run in a k-shell.

Copyright © TIBCO Software Inc. All Rights Reserved