Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 10 Request-Response Invocation Service for Rendezvous Adapter Agent-Based Communication : Run and Test the Example

Run and Test the Example
Perform the following tasks to test the example.
Task A Run the Adapter in TIBCO Designer
1.
Go to Tool-> Show Adapter Tester.
2.
In the adapter tester window, click on the instance and in the Run Settings tab give the following parameters:
Working Directory : Specify a directory of your choice
Adapter Executable : Select the adapter .exe file (adtuxedo_native.exe or adtuxedo_wrkstn.exe)
3.
Click Apply and then Start.
Task B Run the TIBCO ActiveMatrix BusinessWorks Process in TIBCO Designer
1.
2.
Click the Set Breakpoints icon.
3.
In the window that appears, choose Select All, then click OK.
4.
Click the Tester tab in the project panel. The test panel replaces the project tree.
5.
Click the Start testing viewed process button.
6.
In the process selection window that appears, the client process is selected by default. Click Start Selected. The process is now in Test mode. Any change to the input XML file starts the process.
7.
Enter or change the values for ORDER_NO, PROD_ID_ENTERED, DESCRIPTION, UNIT_OF_MEASURE, ORDER_DATE, QTY_ORDERED, STATUS in the Get_input.xml as shown below:
<?xml version="1.0" encoding="UTF-8"?>
<SalesOrders xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SalesOrder>
<ORDER_NO>1000</ORDER_NO>
<PROD_ID_ENTERED>12345</PROD_ID_ENTERED>
<DESCRIPTION>Books</DESCRIPTION>
<UNIT_OF_MEASURE>Copies</UNIT_OF_MEASURE>
<ORDER_DATE>24-Jan-2003</ORDER_DATE>
<QTY_ORDERED>10000</QTY_ORDERED>
<STATUS>Active</STATUS>
</SalesOrder>
</SalesOrders>
8.
In a command window, start the Tuxedo Client (TIBCO_HOME\adapter\adtuxedo\version_number\examples\ AgentBased\SalesOrder\client) and specify the Order ID as follows:
TIBCO_HOME\adapter\adtuxedo\version_number\examples\ AgentBased\SalesOrder>client 1000
9.
The client invokes the Tuxedo service. The Tuxedo service sends a request to the adapter through the agent.
10.
The agent posts the data to the adapter. The adapter puts the request over RV transport. TIBCO ActiveMatrix BusinessWorks subscribes to the request and returns a response.
11.
On getting the response from TIBCO ActiveMatrix BusinessWorks, the adapter forwards the data to invoke the Tuxedo service through the agent.
12.
The output is displayed on the client console.
13.
Click the Stop Testing icon to return to design mode.

Copyright © TIBCO Software Inc. All Rights Reserved