diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-06-28 19:20:18 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-06-28 19:20:18 +0000 |
commit | 75ac12c02d537f38b03567e406cbeccf29226fe0 (patch) | |
tree | 4add4682e2aa8edd9c58f1a23ad3f0ccc8336d02 /cpp/src/IcePack/Client.cpp | |
parent | Replaced invalid struct name Struct with Structure. (diff) | |
download | ice-75ac12c02d537f38b03567e406cbeccf29226fe0.tar.bz2 ice-75ac12c02d537f38b03567e406cbeccf29226fe0.tar.xz ice-75ac12c02d537f38b03567e406cbeccf29226fe0.zip |
Merged location branch.
Diffstat (limited to 'cpp/src/IcePack/Client.cpp')
-rw-r--r-- | cpp/src/IcePack/Client.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/cpp/src/IcePack/Client.cpp b/cpp/src/IcePack/Client.cpp index fe379cae26e..8b1be751591 100644 --- a/cpp/src/IcePack/Client.cpp +++ b/cpp/src/IcePack/Client.cpp @@ -142,19 +142,12 @@ Client::run(int argc, char* argv[]) return EXIT_FAILURE; } - const char* adminEndpointsProperty = "IcePack.Admin.Endpoints"; - string adminEndpoints = properties->getProperty(adminEndpointsProperty); - if(adminEndpoints.empty()) - { - cerr << appName() << ": property `" << adminEndpointsProperty << "' is not set" << endl; - return EXIT_FAILURE; - } + Ice::ObjectPrx base = communicator()->stringToProxy("IcePack/admin@IcePack.Admin"); - Ice::ObjectPrx base = communicator()->stringToProxy("admin:" + adminEndpoints); AdminPrx admin = AdminPrx::checkedCast(base); if(!admin) { - cerr << appName() << ": `" << adminEndpoints << "' are no valid administrative endpoints" << endl; + cerr << appName() << ": `" << "' are no valid administrative endpoints" << endl; return EXIT_FAILURE; } |