summaryrefslogtreecommitdiff
path: root/cpp/demo/IceStorm/clock/Subscriber.cpp
diff options
context:
space:
mode:
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)
{