diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2002-07-17 17:40:04 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2002-07-17 17:40:04 +0000 |
commit | 56c88ea1a2fe81678664adabec8fb181711a8188 (patch) | |
tree | 220a2f90219113e597f8b6929bce3cd4f0b97f2a /cpp/src/IceStorm/Admin.cpp | |
parent | Modified configuration (diff) | |
download | ice-56c88ea1a2fe81678664adabec8fb181711a8188.tar.bz2 ice-56c88ea1a2fe81678664adabec8fb181711a8188.tar.xz ice-56c88ea1a2fe81678664adabec8fb181711a8188.zip |
Adapter and TopicManager name configurable based on service name
Diffstat (limited to 'cpp/src/IceStorm/Admin.cpp')
-rw-r--r-- | cpp/src/IceStorm/Admin.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/src/IceStorm/Admin.cpp b/cpp/src/IceStorm/Admin.cpp index 60236265772..c06a44b304b 100644 --- a/cpp/src/IceStorm/Admin.cpp +++ b/cpp/src/IceStorm/Admin.cpp @@ -157,19 +157,19 @@ Client::run(int argc, char* argv[]) return EXIT_FAILURE; } - const char* managerEndpointsProperty = "IceStorm.TopicManager.Endpoints"; - string managerEndpoints = properties->getProperty(managerEndpointsProperty); - if(managerEndpoints.empty()) + const char* managerReferenceProperty = "IceStorm.TopicManager"; + string managerReference = properties->getProperty(managerReferenceProperty); + if(managerReference.empty()) { - cerr << appName() << ": property `" << managerEndpointsProperty << "' is not set" << endl; + cerr << appName() << ": property `" << managerReferenceProperty << "' is not set" << endl; return EXIT_FAILURE; } - ObjectPrx base = communicator()->stringToProxy("TopicManager:" + managerEndpoints); + ObjectPrx base = communicator()->stringToProxy(managerReference); IceStorm::TopicManagerPrx manager = IceStorm::TopicManagerPrx::checkedCast(base); if(!manager) { - cerr << appName() << ": `" << managerEndpoints << "' is not running" << endl; + cerr << appName() << ": `" << managerReference << "' is not running" << endl; return EXIT_FAILURE; } |