summaryrefslogtreecommitdiff
path: root/cpp/src/IceBox/ServiceManagerI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceBox/ServiceManagerI.cpp')
-rw-r--r--cpp/src/IceBox/ServiceManagerI.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpp/src/IceBox/ServiceManagerI.cpp b/cpp/src/IceBox/ServiceManagerI.cpp
index c6d8023f04b..ee010e18f05 100644
--- a/cpp/src/IceBox/ServiceManagerI.cpp
+++ b/cpp/src/IceBox/ServiceManagerI.cpp
@@ -62,8 +62,10 @@ IceBox::ServiceManagerI::start()
ObjectAdapterPtr adapter = _communicator->createObjectAdapter("IceBox.ServiceManager");
PropertiesPtr properties = _communicator->getProperties();
- string identity = properties->getPropertyWithDefault("IceBox.InstanceName", "IceBox") + "/ServiceManager";
- adapter->add(obj, _communicator->stringToIdentity(identity));
+ Identity identity;
+ identity.category = properties->getPropertyWithDefault("IceBox.InstanceName", "IceBox");
+ identity.name = "ServiceManager";
+ adapter->add(obj, identity);
//
// Parse the IceBox.LoadOrder property.