diff options
author | jtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-12-07 15:33:50 +0000 |
---|---|---|
committer | jtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2004-12-07 15:33:50 +0000 |
commit | 4ec44d5e363e5ededcc4d57993a73e8a8ba18afe (patch) | |
tree | ca735e91aefcc3c64a675902bafcfd2d1bafcf04 /TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp | |
parent | e9211533070cc7ccd574e76d33909b427f067950 (diff) | |
download | ATCD-4ec44d5e363e5ededcc4d57993a73e8a8ba18afe.tar.gz |
ChangeLogTag: Mon Dec 6 23:08:12 2004 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp')
-rw-r--r-- | TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp b/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp index 391218056a0..299eadd3187 100644 --- a/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp +++ b/TAO/orbsvcs/Logging_Service/Notify_Logging_Service/Notify_Logging_Service.cpp @@ -101,13 +101,12 @@ Notify_Logging_Service::init (int argc, char *argv[] // Register the Factory ACE_ASSERT (!CORBA::is_nil (this->naming_.in ())); - CosNaming::Name_var name = - this->naming_->to_name (this->notify_factory_name_.c_str () - ACE_ENV_ARG_PARAMETER); + CosNaming::Name name (1); + name.length (1); + name[0].id = CORBA::string_dup (this->notify_factory_name_.c_str ()); ACE_CHECK_RETURN (-1); - - this->naming_->rebind (name.in (), + this->naming_->rebind (name, obj.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK_RETURN (-1); @@ -132,7 +131,7 @@ Notify_Logging_Service::resolve_naming_service (ACE_ENV_SINGLE_ARG_DECL) ACE_THROW (CORBA::UNKNOWN ()); this->naming_ = - CosNaming::NamingContextExt::_narrow (naming_obj.in () + CosNaming::NamingContext::_narrow (naming_obj.in () ACE_ENV_ARG_PARAMETER); ACE_CHECK; } @@ -173,12 +172,12 @@ Notify_Logging_Service::shutdown (ACE_ENV_SINGLE_ARG_DECL) ACE_ENV_ARG_PARAMETER); ACE_CHECK; - CosNaming::Name_var name = - this->naming_->to_name (this->notify_factory_name_.c_str () - ACE_ENV_ARG_PARAMETER); + CosNaming::Name name (1); + name.length (1); + name[0].id = CORBA::string_dup (this->notify_factory_name_.c_str ()); ACE_CHECK; - this->naming_->unbind (name.in () + this->naming_->unbind (name ACE_ENV_ARG_PARAMETER); ACE_CHECK; |