diff options
author | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-12-11 06:08:37 +0000 |
---|---|---|
committer | brunsch <brunsch@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-12-11 06:08:37 +0000 |
commit | c9f93437872a3ded78f4a764f37ef40322a156b1 (patch) | |
tree | 497b62ddee2aac52fbb97619b8f89e4024271a22 /TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp | |
parent | 36c8941b88a7677d879ad01b48d44d8d23e380a3 (diff) | |
download | ATCD-c9f93437872a3ded78f4a764f37ef40322a156b1.tar.gz |
ChangeLogTag:Sat Dec 11 00:08:50 1999 Darrell Brunsch <brunsch@cs.wustl.edu>
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp')
-rw-r--r-- | TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp b/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp index afe256b1101..afc83e3409f 100644 --- a/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp +++ b/TAO/orbsvcs/ImplRepo_Service/ImplRepo_i.cpp @@ -98,6 +98,7 @@ ImplRepo_i::activate_server_i (const char *server, ImplementationRepository::Administration::NotFound, ImplementationRepository::Administration::CannotActivate)) { + ImplRepo_i::Endpoint default_ep; // Default to be used by exceptions int start = 0; ACE_TString server_object_ior, host; unsigned short port; @@ -116,7 +117,7 @@ ImplRepo_i::activate_server_i (const char *server, ACE_ERROR ((LM_ERROR, "Error: Cannot find startup info for server <%s>\n", server)); - ACE_THROW_RETURN(ImplementationRepository::Administration::NotFound (), ImplRepo_i::Endpoint ()); + ACE_THROW_RETURN(ImplementationRepository::Administration::NotFound (), default_ep); } // Find out if it is already running @@ -127,7 +128,7 @@ ImplRepo_i::activate_server_i (const char *server, ACE_ERROR ((LM_ERROR, "Error: Cannot find ServerObject IOR for server <%s>\n", server)); - ACE_THROW_RETURN (ImplementationRepository::Administration::NotFound (), ImplRepo_i::Endpoint ()); + ACE_THROW_RETURN (ImplementationRepository::Administration::NotFound (), default_ep); } // Check to see if there is one running (if there is a server_object_ior) @@ -151,7 +152,7 @@ ImplRepo_i::activate_server_i (const char *server, ACE_ERROR ((LM_ERROR, "Error: Invalid ServerObject IOR: <%s>\n", server_object_ior.c_str ())); - ACE_THROW_RETURN (ImplementationRepository::Administration::NotFound (), ImplRepo_i::Endpoint ()); + ACE_THROW_RETURN (ImplementationRepository::Administration::NotFound (), default_ep); } // Check to see if we can ping it @@ -177,7 +178,7 @@ ImplRepo_i::activate_server_i (const char *server, ACE_THROW_RETURN (CORBA::TRANSIENT ( CORBA_SystemException::_tao_minor_code (TAO_IMPLREPO_SERVER_MANUAL_ACTIVATION, 0), CORBA::COMPLETED_NO), - ImplRepo_i::Endpoint ()); + default_ep); // Check to see if it is already starting up int startup_val = this->repository_.starting_up (server, 1); @@ -187,7 +188,7 @@ ImplRepo_i::activate_server_i (const char *server, ACE_ERROR ((LM_ERROR, "Error: Cannot find startup info for server <%s>\n", server)); - ACE_THROW_RETURN (ImplementationRepository::Administration::NotFound (), ImplRepo_i::Endpoint ()); + ACE_THROW_RETURN (ImplementationRepository::Administration::NotFound (), default_ep); } if (startup_val == 0) @@ -199,7 +200,7 @@ ImplRepo_i::activate_server_i (const char *server, "Error: No startup information for server <%s>\n", server)); // @@ (brunsch) Should this be a more specific transient exception? - ACE_THROW_RETURN (CORBA::TRANSIENT (), ImplRepo_i::Endpoint ()); + ACE_THROW_RETURN (CORBA::TRANSIENT (), default_ep); } @@ -220,7 +221,7 @@ ImplRepo_i::activate_server_i (const char *server, server, startup.c_str ())); ACE_THROW_RETURN (ImplementationRepository::Administration::CannotActivate (CORBA::string_dup ("N/A")), - ImplRepo_i::Endpoint ()); + default_ep); } } @@ -245,7 +246,7 @@ ImplRepo_i::activate_server_i (const char *server, ACE_ERROR ((LM_ERROR, "Error: Cannot find startup info for server <%s>\n", server)); - ACE_THROW_RETURN (ImplementationRepository::Administration::NotFound (), ImplRepo_i::Endpoint ()); + ACE_THROW_RETURN (ImplementationRepository::Administration::NotFound (), default_ep); } // Now it should be started. @@ -265,7 +266,7 @@ ImplRepo_i::activate_server_i (const char *server, ACE_ERROR ((LM_ERROR, "Error: Could not update information for server <%s>\n", server)); - ACE_THROW_RETURN (ImplementationRepository::Administration::NotFound (), ImplRepo_i::Endpoint ()); + ACE_THROW_RETURN (ImplementationRepository::Administration::NotFound (), default_ep); } } |