3 File: DevGuideExamples/Multithreading/ThreadPerConnection/README
6 This directory contains a CORBA example illustrating a simple client and
7 a server with an interface Messenger. This example is based on the
8 Getting Started example, but adds concurrent request processing
9 capabilities to the server using the thread-per-connection concurrency
18 ./MessengerServer -ORBSvcConf server.conf
28 Run several clients simultaneously against the server. Each client
29 should establish a separate connection to the server and each client's
30 requests should be handled on a separate thread in the server. To
31 verify this, the server returns the thread ID that handled the request
32 in the reply message that is printed by the client.
35 Exeuction via Perl Script
36 -------------------------
38 A Perl script has been created to automate the steps shown
39 above. This script can be run via the following command:
43 Here is sample output from the Perl script:
45 Starting MessengerServer
46 IOR written to file Messenger.ior
49 Starting 4 MessengerClients.
50 Each client should get a new connection
51 and its own thread in the server.
53 Reply: Message handled on thread 992
54 Reply: Message handled on thread 1952
55 Reply: Message handled on thread 1676
56 Reply: Message handled on thread 1016
61 Since the Perl script starts several clients simultaneously, output
62 may become garbled since each client writes its output to stdout.
67 If you run on Windows platform, go to Debug or Release directory to run the
68 script via following command: