summaryrefslogtreecommitdiff
path: root/cpp/demo/IceStorm/clock/Subscriber.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2001-12-07 18:42:36 +0000
committerMatthew Newhook <matthew@zeroc.com>2001-12-07 18:42:36 +0000
commitc44795c5d2ce634932f7666dd6d0ccae2bd85bdc (patch)
treec097e4430c6b983e5354fc65642750ebfd2eda32 /cpp/demo/IceStorm/clock/Subscriber.cpp
parentIceStorm updates. (diff)
downloadice-c44795c5d2ce634932f7666dd6d0ccae2bd85bdc.tar.bz2
ice-c44795c5d2ce634932f7666dd6d0ccae2bd85bdc.tar.xz
ice-c44795c5d2ce634932f7666dd6d0ccae2bd85bdc.zip
updates.
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 6e817f3da11..40145cbd239 100644
--- a/cpp/demo/IceStorm/clock/Subscriber.cpp
+++ b/cpp/demo/IceStorm/clock/Subscriber.cpp
@@ -34,15 +34,15 @@ int
Subscriber::run(int argc, char* argv[])
{
Ice::PropertiesPtr properties = communicator()->getProperties();
- const char* refProperty = "IceStorm.TopicManager";
- std::string ref = properties->getProperty(refProperty);
- if (ref.empty())
+ const char* endpointsProperty = "IceStorm.TopicManager.Endpoints";
+ std::string endpoints = properties->getProperty(endpointsProperty);
+ if (endpoints.empty())
{
- cerr << appName() << ": property `" << refProperty << "' not set" << endl;
+ cerr << appName() << ": property `" << endpointsProperty << "' not set" << endl;
return EXIT_FAILURE;
}
- Ice::ObjectPrx base = communicator()->stringToProxy(ref);
+ ObjectPrx base = communicator()->stringToProxy("TopicManager:" + endpoints);
IceStorm::TopicManagerPrx manager = IceStorm::TopicManagerPrx::checkedCast(base);
if (!manager)
{