Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 11 TIBCO ActiveMatrix BusinessWorks: End-to-End Publish-Subscribe for Event Based Communication : Example Description

Example Description
This example simulates the Event based communication paradigm that is supported by the adapter Publication and Subscription services. The Tuxedo service, based on the Employee ID that it received from the data sent by the invoking client, returns the Department ID, Employee Name and Department Name corresponding to that Employee ID.
Following are the flow of events:
1.
The client (clt file) calls a Tuxedo service named WITHDRAWAL.
2.
The Tuxedo server receives the request from the client (clt file) processes it and posts an event BANK_TLR_WITHDRAWAL along with the message data on the Tuxedo EventBroker.
3.
The adapter Publication service, which also registers itself with the Tuxedo EventBroker, receives the message data based on the event name and publishes it.
4.
The Subscription service subscribes to the published message and posts the event (BANK_TLR_WITHDRAWAL_SUBSCRIBE) with the Tuxedo EventBroker.
5.
A second client (client) registers itself with the Tuxedo EventBroker for the event BANK_TLR_WITHDRAWAL_SUBSCRIBE.
6.
The client receives it and prints the subscribed data on the console. The output parameters are EMPID, DEPTID EMPNAME, DEPTNAME, DOJ, SALARY and BASIC.
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\EventBased\Employee
TIBCO_HOME\adapter\adtuxedo\version_number\examples\EventBased\Employee\BusinessWorks
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