diff options
Diffstat (limited to 'TAO/orbsvcs/tests/LoadBalancing')
-rw-r--r-- | TAO/orbsvcs/tests/LoadBalancing/HashReplicaFactory.cpp | 8 | ||||
-rw-r--r-- | TAO/orbsvcs/tests/LoadBalancing/server.cpp | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/TAO/orbsvcs/tests/LoadBalancing/HashReplicaFactory.cpp b/TAO/orbsvcs/tests/LoadBalancing/HashReplicaFactory.cpp index 15063062c9b..262b1850a6b 100644 --- a/TAO/orbsvcs/tests/LoadBalancing/HashReplicaFactory.cpp +++ b/TAO/orbsvcs/tests/LoadBalancing/HashReplicaFactory.cpp @@ -1,10 +1,10 @@ // -*- C++ -*- -// -// $Id$ #include "HashReplicaFactory.h" -ACE_RCSID (LB_test, HashReplicaFactory, "$Id$") +ACE_RCSID (LB_test, + HashReplicaFactory, + "$Id$") CORBA::Object_ptr HashReplicaFactory::create_object ( @@ -12,7 +12,7 @@ HashReplicaFactory::create_object ( const TAO_LoadBalancing::Criteria &the_criteria, TAO_LoadBalancing::GenericFactory::FactoryCreationId_out factory_creation_id, - ACE_TRY_ENV) + CORBA::Environment &ACE_TRY_ENV) ACE_THROW_SPEC ((CORBA::SystemException, TAO_LoadBalancing::NoFactory, TAO_LoadBalancing::ObjectNotCreated, diff --git a/TAO/orbsvcs/tests/LoadBalancing/server.cpp b/TAO/orbsvcs/tests/LoadBalancing/server.cpp index f47efd57aa6..1526a5e1343 100644 --- a/TAO/orbsvcs/tests/LoadBalancing/server.cpp +++ b/TAO/orbsvcs/tests/LoadBalancing/server.cpp @@ -43,7 +43,9 @@ main (int argc, char *argv[]) } CORBA::Object_var poa_object = - orb->resolve_initial_references ("RootPOA"); + orb->resolve_initial_references ("RootPOA", ACE_TRY_ENV); + ACE_TRY_CHECK; + if (CORBA::is_nil (poa_object.in ())) ACE_ERROR_RETURN ((LM_ERROR, " (%P|%t) Unable to initialize the POA.\n"), |