summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-05-02 19:31:43 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-05-02 19:31:43 +0000
commitb346ca07b9db29c2beb4f93e2f76b27d68ba4e55 (patch)
treec2c9ad92cd4928b0630652271eb1eba5c7e8836a /TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp
parent17491961edde93a5c382a341fc35128767d24855 (diff)
downloadATCD-b346ca07b9db29c2beb4f93e2f76b27d68ba4e55.tar.gz
*** empty log message ***
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp b/TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp
index adbaefb8b21..6a30e9f57fb 100644
--- a/TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp
+++ b/TAO/orbsvcs/orbsvcs/Naming/Naming_Utils.cpp
@@ -32,8 +32,8 @@ TAO_Naming_Server::TAO_Naming_Server (void)
// Constructor which takes an ORB and POA.
-TAO_Naming_Server::TAO_Naming_Server (CORBA::ORB_var &orb,
- PortableServer::POA_var &child_poa,
+TAO_Naming_Server::TAO_Naming_Server (CORBA::ORB_ptr orb,
+ PortableServer::POA_ptr child_poa,
int argc,
char **argv)
{
@@ -82,11 +82,16 @@ TAO_Naming_Server::init (CORBA::ORB_ptr orb,
if (ACE_OS::strcmp (this->naming_context_name_,
"NameService") == 0)
{
+ // Get the naming context ptr to NameService.
+ this->naming_context_var_ =
+ this->naming_context_impl_._this (TAO_TRY_ENV);
+ TAO_CHECK_ENV;
+
PortableServer::ObjectId_var id =
- PortableServer::string_to_ObjectId (this->naming_context_name_);
+ PortableServer::string_to_ObjectId ("NameService");
child_poa->activate_object_with_id (id.in (),
- &naming_context_impl_,
+ &this->naming_context_impl_,
TAO_TRY_ENV);
TAO_CHECK_ENV;