blob: 6548d9ba6a82bf3763b043ce4be4810571724757 (
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
|
//$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
main (int argc, char *argv[])
{
ACE_DECLARE_NEW_CORBA_ENV;
ACE_TRY
{
Policy_Tester policy_tester;
int result = policy_tester.init (argc, argv ACE_ENV_ARG_PARAMETER);
if (result != 0)
return result;
policy_tester.run ();
}
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
ACE_TEXT ("CORBA Exception Raised."));
return 1;
}
ACE_ENDTRY;
return 0;
}
|