summaryrefslogtreecommitdiff
path: root/cpp/demo/IceStorm/clock/Subscriber.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2002-07-17 17:40:04 +0000
committerDwayne Boone <dwayne@zeroc.com>2002-07-17 17:40:04 +0000
commit56c88ea1a2fe81678664adabec8fb181711a8188 (patch)
tree220a2f90219113e597f8b6929bce3cd4f0b97f2a /cpp/demo/IceStorm/clock/Subscriber.cpp
parentModified configuration (diff)
downloadice-56c88ea1a2fe81678664adabec8fb181711a8188.tar.bz2
ice-56c88ea1a2fe81678664adabec8fb181711a8188.tar.xz
ice-56c88ea1a2fe81678664adabec8fb181711a8188.zip
Adapter and TopicManager name configurable based on service name
Diffstat (limited to 'cpp/demo/IceStorm/clock/Subscriber.cpp')
-rw-r--r--cpp/demo/IceStorm/clock/Subscriber.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/demo/IceStorm/clock/Subscriber.cpp b/cpp/demo/IceStorm/clock/Subscriber.cpp
index 8ff22bbd6c9..6e266e6d3b8 100644
--- a/cpp/demo/IceStorm/clock/Subscriber.cpp
+++ b/cpp/demo/IceStorm/clock/Subscriber.cpp
@@ -37,15 +37,15 @@ Subscriber::run(int argc, char* argv[])
{
Ice::PropertiesPtr properties = communicator()->getProperties();
- static const string endpointsProperty = "IceStorm.TopicManager.Endpoints";
- string endpoints = properties->getProperty(endpointsProperty);
- if(endpoints.empty())
+ static const string referenceProperty = "IceStorm.TopicManager";
+ string reference = properties->getProperty(referenceProperty);
+ if(reference.empty())
{
- cerr << appName() << ": property `" << endpointsProperty << "' not set" << endl;
+ cerr << appName() << ": property `" << referenceProperty << "' not set" << endl;
return EXIT_FAILURE;
}
- Ice::ObjectPrx base = communicator()->stringToProxy("TopicManager:" + endpoints);
+ Ice::ObjectPrx base = communicator()->stringToProxy(reference);
IceStorm::TopicManagerPrx manager = IceStorm::TopicManagerPrx::checkedCast(base);
if(!manager)
{