diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-09-05 15:58:21 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-09-05 15:58:21 +0000 |
commit | 9a06476f80dfab5b3a0497cdcabcc005a939f94e (patch) | |
tree | d6595a4ee4424f4a8939f03b19d1122d46714ef0 /cpp/src/IceBox/Admin.cpp | |
parent | Fix compilation error. (diff) | |
download | ice-9a06476f80dfab5b3a0497cdcabcc005a939f94e.tar.bz2 ice-9a06476f80dfab5b3a0497cdcabcc005a939f94e.tar.xz ice-9a06476f80dfab5b3a0497cdcabcc005a939f94e.zip |
Bug 1209
Diffstat (limited to 'cpp/src/IceBox/Admin.cpp')
-rw-r--r-- | cpp/src/IceBox/Admin.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/cpp/src/IceBox/Admin.cpp b/cpp/src/IceBox/Admin.cpp index 21309d22beb..0ecc1024fca 100644 --- a/cpp/src/IceBox/Admin.cpp +++ b/cpp/src/IceBox/Admin.cpp @@ -83,7 +83,9 @@ Client::run(int argc, char* argv[]) } PropertiesPtr properties = communicator()->getProperties(); - string managerIdentity = properties->getPropertyWithDefault("IceBox.InstanceName", "IceBox") + "/ServiceManager"; + Identity managerIdentity; + managerIdentity.category = properties->getPropertyWithDefault("IceBox.InstanceName", "IceBox"); + managerIdentity.name = "ServiceManager"; string managerProxy; if(properties->getProperty("Ice.Default.Locator").empty()) @@ -95,7 +97,7 @@ Client::run(int argc, char* argv[]) return EXIT_FAILURE; } - managerProxy = managerIdentity + ":" + managerEndpoints; + managerProxy = "\"" + communicator()->identityToString(managerIdentity) + "\" :" + managerEndpoints; } else { @@ -106,7 +108,7 @@ Client::run(int argc, char* argv[]) return EXIT_FAILURE; } - managerProxy = managerIdentity + "@" + managerAdapterId; + managerProxy = "\"" + communicator()->identityToString(managerIdentity) + "\" @" + managerAdapterId; } ObjectPrx base = communicator()->stringToProxy(managerProxy); |