From 9a06476f80dfab5b3a0497cdcabcc005a939f94e Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Tue, 5 Sep 2006 15:58:21 +0000 Subject: Bug 1209 --- cpp/src/IceGrid/Client.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'cpp/src/IceGrid/Client.cpp') diff --git a/cpp/src/IceGrid/Client.cpp b/cpp/src/IceGrid/Client.cpp index 29b98aec2d2..c9d9d6b122b 100644 --- a/cpp/src/IceGrid/Client.cpp +++ b/cpp/src/IceGrid/Client.cpp @@ -313,16 +313,19 @@ Client::run(int argc, char* argv[]) } else { - string registryStr = instanceName + "/Registry"; + Identity registryId; + registryId.category = instanceName; + registryId.name = "Registry"; if(!replica.empty() && replica != "Master") { - registryStr += "-" + replica; + registryId.name += "-" + replica; } RegistryPrx registry; try { - registry = RegistryPrx::checkedCast(communicator()->stringToProxy(registryStr)); + registry = RegistryPrx::checkedCast( + communicator()->stringToProxy("\"" + communicator()->identityToString(registryId) + "\"")); if(!registry) { cerr << argv[0] << ": could not contact registry" << endl; -- cgit v1.2.3