Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Exposed_Policies / server.cpp
blob43e63c7a8a9b3178ead43ff8d3764c45e76a255c
1 ////////////////////////////////////////////////////////////////////////
2 // This files tests the Client exposed policies:
3 // - PriorityModelPolicy
4 // - PriorityBandedConnectionPolicy
5 // - ClientProtocolPolicy
6 //
7 // This policies are embedded in the object reference, by writem
8 // them into the IOR.
9 //
10 // -- App. Specific Include --
11 #include "Policy_Tester.h"
13 #include "tao/Strategies/advanced_resource.h"
15 int
16 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
19 try
21 Policy_Tester policy_tester;
23 int result = policy_tester.init (argc, argv);
25 if (result != 0)
26 return result;
28 policy_tester.run ();
31 catch (const CORBA::Exception& ex)
33 ex._tao_print_exception (ACE_TEXT ("CORBA Exception Raised."));
34 return 1;
38 return 0;