Publishing and Subscribing to TIBCO Rendezvous Messages
Rendezvous programs use messages as the common currency to exchange data. The Rendezvous palette includes activities that allow you to easily setup subjects to send and receive messages. This sample shows how to use Rendezvous activities.
Prerequisites
TIBCO Rendezvous must be running on the machine.
To run this sample you can either use TIBCO ActiveMatrix BusinessWorks™ 6.x client or ActiveMatrix BusinessWorks™ 5.x as a client.
For more information about how to configure client in TIBCO ActiveMatrix BusinessWorks 5.x, see Configure the Client in TIBCO Designer section.
Procedure
Configure the Client in TIBCO Designer
Result
The Console view displays the message similar to the following:
10:49:55.611 INFO [bwThread:In-Memory STWorkProcessor-1] c.t.b.p.g.L.t.b.s.p.r.rpc.Log - Message Published to BW.Start
10:49:57.745 INFO [bwThread:In-Memory STWorkProcessor-7] c.t.b.p.g.L.t.b.s.p.r.rpc.Log - TestCase Completed
10:50:02.759 INFO [bwThread:In-Memory STWorkProcessor-5] c.t.b.p.g.L.t.b.s.p.r.rpc.Log - Recieved Response HELLO WORLD
The output.log file is generated at C:\tmp\RPC that contains the following data:
Message Published to BW.Start
Subscriber to Bw.Start invoked and Message Published on BW.Results
Process completed.Final output is--->>HELLO WORLD
Understanding the Configuration
The Wait for Rendezvous Request activity receives the message from the Send Rendezvous Request activity and sends a reply message to the Rendezvous Request activity. A final result message is delivered by the publisher on the subject BW.Result.