3 Event Notification Service
6 File: examples/NotifyService/Messenger/README
8 This directory contains a simple example of using the Notification Service.
10 This example extends the Messenger example in GettingStarted directory
11 to illustrate how the Notification channel can be used to push messages
12 from the supplier to the consumer. Structured events are used to demonstrate
13 the operation of the channel. The example uses the push/push model.
15 The MessengerServer in this example plays the role of a server for
16 the MessengerClient and the role of a supplier for the MessengerConsumer.
17 The flow of messages is shown below:
19 MessengerClient->MessengerSupplier->NotificationChannel->MessengerConsumer.
22 The Client code is stored in:
24 examples/NotifyService/Messenger/MessengerClient.cpp
26 The Server code is stored in:
28 examples/NotifyService/Messenger/MessengerServer.cpp
30 The Consumer code is stored in:
32 examples/NotifyService/Messenger/MessengerConsumer.cpp
38 To start the Naming Service:
39 ----------------------------
40 $TAO_ROOT/orbsvcs/Naming_Service/Naming_Service -o ns.ior&
42 To start the Notification Service:
43 ---------------------------------
44 $TAO_ROOT/orbsvcs/Notify_Service/Notify_Service -ORBInitRef NameService=file://ns.ior&
46 To start the server/supplier
47 ----------------------------
48 ./MessengerServer -ORBInitRef NameService=file://ns.ior
52 ./MessengerConsumer -ORBInitRef NameService=file://ns.ior
56 ./MessengerClient -ORBInitRef NameService=file://ns.ior
60 Exeuction via Perl Script
61 -------------------------
63 A Perl script has been created to automate the steps shown
64 above. This script can be run via the following command: