summaryrefslogtreecommitdiff
path: root/TAO/tests/Exposed_Policies/server.cpp
blob: a26905e2eb53d59b0d52b13048c603a9dc30d75f (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
////////////////////////////////////////////////////////////////////////
// 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"

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;
}