blob: 80dd35351b3e3ee26701dcc23bbd5322a67ce5a0 (
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
|
//$Id$
////////////////////////////////////////////////////////////////////////
// This files tests the Client exposed policies:
// - PriorityModelPolicy
// - PriorityBandedConnectionPolicy
// - ClientProtocolPolicy
//
// This policies are embedded in the object reference, by writem
// them into the IOR.
//
//
// -- App. Specific Include --
#include "Policy_Tester.h"
#include "tao/Strategies/advanced_resource.h"
ACE_RCSID(tao, server, "$Id$")
int
ACE_TMAIN(int argc, ACE_TCHAR *argv[])
{
try
{
Policy_Tester policy_tester;
int result = policy_tester.init (argc, argv);
if (result != 0)
return result;
policy_tester.run ();
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception (ACE_TEXT ("CORBA Exception Raised."));
return 1;
}
return 0;
}
|