6 File: DevGuideExamples/EventServices/OMG_Basic/README
9 This directory contains a simple example of using the CosEvent service.
10 This example uses the push/push model:
12 EchoEventSupplier ----> CosEvent_Service ----> EchoEventConsumer
14 This example also works fine with the CosEvent_Service server.
16 -------------------------------------------------------------------------
18 Note: To test this, you must first run the Naming Service and the
19 CosEvent Service, e.g.:
21 $TAO_ROOT/orbsvcs/Naming_Service/Naming_Service -o ns.ior &
22 $TAO_ROOT/orbsvcs/CosEvent_Service/CosEvent_Service -ORBInitRef NameService=file://ns.ior&
24 -------------------------------------------------------------------------
26 EchoEventSupplerMain.cpp
28 Main program for a PushSupplier.
30 EchoEventSupplier -ORBInitRef NameService=file://ns.ior
32 It will publish an event to the event channel every second.
33 Use Control-C to kill the process.
35 -------------------------------------------------------------------------
37 EchoEventConsumerMain.cpp
39 Main program for a PushConsumer.
43 EchoEventConsumer -ORBInitRef NameService=file://ns.ior
45 Use Control-C to kill the process.
47 -------------------------------------------------------------------------
49 EchoEventConsumer_i.{h,cpp}
51 Call which implements the CosEventComm::PushConsumer interface.
55 Execution via Perl Script
56 -------------------------
58 A Perl script has been created to automate the steps shown
59 above. This script can be run via the following command:
61 ./run_test.pl -ExeSubDir <Release>