summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ior_corbaname/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/ior_corbaname/server.cpp')
-rw-r--r--TAO/orbsvcs/tests/ior_corbaname/server.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/TAO/orbsvcs/tests/ior_corbaname/server.cpp b/TAO/orbsvcs/tests/ior_corbaname/server.cpp
index 4582f0445a0..b4668dbcc34 100644
--- a/TAO/orbsvcs/tests/ior_corbaname/server.cpp
+++ b/TAO/orbsvcs/tests/ior_corbaname/server.cpp
@@ -14,26 +14,21 @@ int main (int argc, char* argv[])
CORBA::ORB_init (argc, argv,
"" /* the ORB name, it can be anything! */
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;
// Narrow down to the correct reference
PortableServer::POA_var poa =
PortableServer::POA::_narrow (poa_object.in () ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Set a POA Manager
PortableServer::POAManager_var poa_manager =
- poa->the_POAManager (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ poa->the_POAManager ();
// Activate the POA Manager
- poa_manager->activate (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ poa_manager->activate ();
// Create the servant
corbaname_Status_i status_i;
@@ -45,13 +40,11 @@ int main (int argc, char* argv[])
// Get a reference to Naming Context
CORBA::Object_var naming_context_object =
orb->resolve_initial_references ("NameService" ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Narrow down the reference
CosNaming::NamingContext_var naming_context =
CosNaming::NamingContext::_narrow (naming_context_object.in()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Bind Status to the Naming Context
CosNaming::Name name (1);
@@ -61,11 +54,9 @@ int main (int argc, char* argv[])
naming_context->bind (name,
status.in ()
ACE_ENV_ARG_PARAMETER);
- ACE_TRY_CHECK;
// Run the orb
- orb->run (ACE_ENV_SINGLE_ARG_PARAMETER);
- ACE_TRY_CHECK;
+ orb->run ();
// Destroy the POA, waiting until the destruction terminates
poa->destroy (1, 1);
@@ -77,7 +68,6 @@ int main (int argc, char* argv[])
ACE_PRINT_EXCEPTION (ex, "CORBA exception raised in server!");
}
ACE_ENDTRY;
- ACE_CHECK_RETURN (-1);
return 0;
}