summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/DevGuideExamples/EventServices/OMG_SupplierSideEC/README
blob: 906df6e99dbada547d40e8388d86fd97127a4ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
$Id$

OMG Event Service


File: DevGuideExamples/EventServices/OMG_SupplierSideEC/README


This directory contains an example that extends the previous examples
so that the event supplier creates its own local event channel.  All
other code is identical to that in EventServices/OMG_Basic.

  EchoEventSupplier (contains EC) ------> EchoEventConsumer

By default, the supplier will create a "Native" EC.  Passing -wrapper
will force creation of a "Wrapper" EC that will utilize a Real-Time
Event Channel (RTEC) as the underlying implementation.

-------------------------------------------------------------------------

Note: To test this, you must first run the Naming Service

$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service -o ns.ior&

-------------------------------------------------------------------------

EchoEventSupplerMain.cpp

  Main program for a PushSupplier.

    EchoEventSupplier -ORBInitRef NameService=file://ns.ior

  It will create an event channel and publish an event to it every
  second.
  Use Control-C to kill the process.

-------------------------------------------------------------------------

EchoEventConsumerMain.cpp

  Main program for a PushConsumer.

  To run it:

    EchoEventConsumer -ORBInitRef NameService=file://ns.ior

  Use Control-C to kill the process.

-------------------------------------------------------------------------

EchoEventConsumer_i.{h,cpp}

  Call which implements the CosEventComm::PushConsumer interface.



Exeuction via Perl Script
-------------------------

A Perl script has been created to automate the steps shown
above.  This script can be run via the following command:

./run_test.pl