summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp')
-rw-r--r--TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp b/TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp
index 2b39bda82e3..a5a5668efb0 100644
--- a/TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp
+++ b/TAO/orbsvcs/examples/Security/SecurityLevel1/server.cpp
@@ -16,12 +16,10 @@ main (int argc, char *argv[])
/// Our regular ORB Initialization.
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
/// Get a reference to the RootPOA.
CORBA::Object_var poa_object =
orb->resolve_initial_references ("RootPOA" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
if (CORBA::is_nil (poa_object.in ()))
ACE_ERROR_RETURN ((LM_ERROR,
@@ -31,18 +29,15 @@ main (int argc, char *argv[])
/// Narrow down the reference to the currect interface.
PortableServer::POA_var root_poa =
PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
SLevel1_Server_i level1_server ();
SLevel1_Server_var server =
- level1_server._this (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ level1_server._this ();
CORBA::String_var ior =
orb->object_to_string (server.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// If the ior_output_file exists, output the ior to it
if (ior_output_file != 0)
@@ -61,7 +56,6 @@ main (int argc, char *argv[])
orb->run ();
root_poa->destroy (1, 1 ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
}
ACE_CATCH (CORBA::SytemException, ex)