3 File: DevGuideExamples/Multithreading/GracefulShutdown/README
5 This directory contains a CORBA example illustrating a simple client
6 and a server with an interface Messenger. This example extends the
7 Getting Started example to show various techniques for gracefully
8 shutting down a TAO server.
16 ./MessengerServer [options]
18 where [options] can be one of the following:
20 -x - (default) shutdown the ORB when the client invokes the
21 Messenger::shutdown() operation
23 -p <n> - use non-blocking ORB operations in a polling loop to shutdown
26 -t <n> - schedule a timer with the ORB's reactor to shutdown in
29 -r <n> - use the overloaded version of CORBA::ORB::run() that takes
30 an ACE_Time_Value parameter indicating how long run()
31 should process events before returning, where <n> is the
32 number of seconds the ORB will run.
34 -c - spawn a separate thread to shutdown the ORB on any
35 input from the console (terminal)
41 ./MessengerClient [-x]
43 where -x indicates the client will invoke Messenger::shutdown()
44 on the server to shut it down.
48 Exeuction via Perl Script
49 -------------------------
51 A Perl script has been created to automate the steps shown
52 above. This script can be run via the following command:
59 If you run on Windows platform, go to Debug or Release directory to run the
60 script via following command: