blob: e24cec684a69cbf315fe6fcb2745160def467d35 (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
Case
----
This test creates a distributed DT ie. a DT that spans multiple
hosts/processes. In this test they span two hosts/processes. The DT on
one host/process makes a remote invocation on another host/process and
hence executes in the context of the second host/process before
returning to the first host/process. The DT makes a one-way and a
two-way invocations. In a one-way invocation a new DT is created to
continue servicing the request. In the case of a two-way invocation
the same DT executes on the second host/process.
The DT information is propagated across hosts/processes via the
service contexts. The service context is populated with the DT info
using the Client Interceptor when sending a request. The DT info is
retreived from the service context on the server using the Server
Interceptor when receiving the request.
This test also illustrates the propagation of the
CORBA::THREAD_CANCELLED exception to the point of origin of the DT
when it is cancelled on a remote host/process it is currently
executing in.
To Run
------
Start the following processes in that order.
./test_server -f <ior_filename>
-f <ior_filename> --> Name of the file in which the server IOR will be written
./test_client -f <ior_filename>
-f <ior_filename> --> Name of the file in which the server IOR was written
Typical Output
--------------
Server
.......
Server_Interceptor::receive_request_service_contexts
Server_Interceptor::receive_request
Request from Distributable Thread
The Guid is 2
One-Way Message = file:///project/ace/yamuna/ior_file
Server_Interceptor::send_reply
Server_Interceptor::receive_request_service_contexts
Server_Interceptor::receive_request
Request from Distributable Thread
The Guid is 1
Two-Way Message = file:///project/ace/yamuna/ior_file
Server_Interceptor::send_reply
Distributable Thread - 1 is cancelled
Server_Interceptor::receive_request_service_contexts
Server_Interceptor::receive_request
Invalid Service Request
Server_Interceptor::send_reply
Client
.......
Making a one-way request
Client_Interceptor::send_request
The Guid is 2
Client_Interceptor::receive_other
Making a two-way request
Client_Interceptor::send_request
Client_Interceptor::receive_exception
Received Exception IDL:omg.org/CORBA/THREAD_CANCELLED:1.0
Distributable Thread - 1 is cancelled
(8752|1024) EXCEPTION, Caught exception:
system exception, ID 'IDL:omg.org/CORBA/THREAD_CANCELLED:1.0'
TAO exception, minor code = 0 (unknown location; unspecified errno), completed = NO
Client_Interceptor::send_request
Client_Interceptor::receive_other
|