summaryrefslogtreecommitdiff
path: root/TAO/DevGuideExamples/PortableInterceptors/PICurrent/README
blob: 0f37fae7ad8a6a1040df7bb3acf17e6b47003e03 (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
// $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 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
----------

To start the server:
------------------
./MessengerServer 

To start the client:
------------------
./MessengerClient -ORBInitRef Messenger=file://Messenger.ior

Execuction 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