summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/Exposed_Policies/server.cpp
blob: 59e4566d5097f8a2ec2c308be2592c8bf0d22a39 (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
main (int argc, char *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;
}