Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 8 Request-Response Service for Synchronous Communication : Example Description

Example Description
This example simulates the Synchronous communication paradigm that is supported by the adapter Request-Response service. The Tuxedo service, based on the DEPTID that it receives from the invoking client (the Request-Response service in this case), returns the EMPID, EMPNAME and DEPTID corresponding to that DEPTID.
This example can be run in two ways:
1.
Loading Field ID Dynamically at run-time — The Field ID for FML32 fields are loaded dynamically from the corresponding field tables at runtime.
2.
Loading the Field ID stored in the repository — The Field IDs for FML32 fields are read from the corresponding header files and stored in the repository.
Following are the flow of events:
1.
Enter the values for Department ID in the Get_input.xml as shown below:
<?xml version="1.0" encoding="UTF-8"?>
<Employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Employee>
<DEPTID>123</DEPTID>
</Employee>
</Employees>.
2.
TIBCO ActiveMatrix BusinessWorks reads the input data and sends the request. The TIBCO ActiveMatrix BusinessWorks process, rpc gets triggered. The file poller in the process reads the data and forwards it to the Request-Response Invocation service in the process which publishes the data.
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 then invokes the Tuxedo Service EMPINFO.
5.
The Tuxedo service based on the Department ID that is received, queries the flat file - inputdata.txt.
6.
The Tuxedo service then returns the records that match the query.
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:
For the Static example:
TIBCO_HOME\adapter\adtuxedo\version_number\examples\Synchronous\Static\Employee\BusinessWorks
For the Dynamic example:
TIBCO_HOME\adapter\adtuxedo\version_number\examples\Synchronous\Dynamic\Employee\BusinessWorks
Project zip that contains the adapter request-response configuration 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