blob: 596a9a8c0e9783972ce776e6452112327c859117 (
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
|
$Id$
Portable Interceptors
File: DevGuideExamples/PortableInterceptor/PICurrent_NameService/README
This directory contains an example that shows how the PICurrent can
be used to stop client-side interceptor recursions. This example is
identical to the ../PICurrent example but uses the Naming Service.
This example is based on the Messenger example in GettingStarted
directory. A message is send by MessengerClient and displayed by
MessengerServer. When the client receives a reply, it asks the server
for the current time. This causes a recursive call at the receive_reply()
interception point. A flag is passed in the PICurrent to let the client
know the call is recursive.
How to Run
----------
Start the Naming Service:
-------------------------
$TAO_ROOT/orbsvcs/Naming_Service/Naming_Service \
-ORBListenEndpoints iiop://localhost:9876
To start the server:
------------------
./MessengerServer \
-ORBInitRef NameService=iioploc://localhost:9876/NameService
To start the client:
------------------
./MessengerClient \
-ORBInitRef NameService=iioploc://localhost:9876/NameService
Execution 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
|