diff options
Diffstat (limited to 'trunk/TAO/tests/Exposed_Policies/server.cpp')
-rw-r--r-- | trunk/TAO/tests/Exposed_Policies/server.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/trunk/TAO/tests/Exposed_Policies/server.cpp b/trunk/TAO/tests/Exposed_Policies/server.cpp new file mode 100644 index 00000000000..ecc7d20d022 --- /dev/null +++ b/trunk/TAO/tests/Exposed_Policies/server.cpp @@ -0,0 +1,50 @@ +//$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); + ACE_TRY_CHECK; + + if (result != 0) + return result; + + policy_tester.run (ACE_ENV_SINGLE_ARG_PARAMETER); + ACE_TRY_CHECK; + } + + ACE_CATCHANY + { + ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, + ACE_TEXT ("CORBA Exception Raised.")); + return 1; + } + + ACE_ENDTRY; + + return 0; +} |