diff options
Diffstat (limited to 'cpp/src/IceBox/ServiceManagerI.cpp')
-rw-r--r-- | cpp/src/IceBox/ServiceManagerI.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/IceBox/ServiceManagerI.cpp b/cpp/src/IceBox/ServiceManagerI.cpp index 216e4f5abae..f760bd66b97 100644 --- a/cpp/src/IceBox/ServiceManagerI.cpp +++ b/cpp/src/IceBox/ServiceManagerI.cpp @@ -65,8 +65,11 @@ IceBox::ServiceManagerI::run() ObjectAdapterPtr adapter = _server->communicator()->createObjectAdapter("IceBox.ServiceManager"); PropertiesPtr properties = _server->communicator()->getProperties(); - - string identity = properties->getPropertyWithDefault("IceBox.ServiceManager.Identity", "ServiceManager"); + string identity = properties->getProperty("IceBox.ServiceManager.Identity"); + if(identity.empty()) + { + identity = properties->getPropertyWithDefault("IceBox.InstanceName", "IceBox") + "/ServiceManager"; + } adapter->add(obj, stringToIdentity(identity)); // |