summaryrefslogtreecommitdiff
path: root/cpp/test/IceStorm/single/Subscriber.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2002-07-17 19:03:57 +0000
committerDwayne Boone <dwayne@zeroc.com>2002-07-17 19:03:57 +0000
commite87892c9c3251b4316275ed8e296d23de0ad190b (patch)
tree68136f896a13b771857828b553e0b9ba43f87ee3 /cpp/test/IceStorm/single/Subscriber.cpp
parentAdapter and TopicManager name configurable based on service name (diff)
downloadice-e87892c9c3251b4316275ed8e296d23de0ad190b.tar.bz2
ice-e87892c9c3251b4316275ed8e296d23de0ad190b.tar.xz
ice-e87892c9c3251b4316275ed8e296d23de0ad190b.zip
Use IceStorm service
Diffstat (limited to 'cpp/test/IceStorm/single/Subscriber.cpp')
-rw-r--r--cpp/test/IceStorm/single/Subscriber.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpp/test/IceStorm/single/Subscriber.cpp b/cpp/test/IceStorm/single/Subscriber.cpp
index 710bac045ad..40fec79d20a 100644
--- a/cpp/test/IceStorm/single/Subscriber.cpp
+++ b/cpp/test/IceStorm/single/Subscriber.cpp
@@ -79,19 +79,19 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator)
}
createLock(lockfile);
- 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 << argv[0] << ": property `" << managerEndpointsProperty << "' is not set" << endl;
+ cerr << argv[0] << ": 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 << argv[0] << ": `" << managerEndpoints << "' is not running" << endl;
+ cerr << argv[0] << ": `" << managerReference << "' is not running" << endl;
return EXIT_FAILURE;
}