diff options
Diffstat (limited to 'cpp/demo/IceStorm/clock/Subscriber.cpp')
-rw-r--r-- | cpp/demo/IceStorm/clock/Subscriber.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpp/demo/IceStorm/clock/Subscriber.cpp b/cpp/demo/IceStorm/clock/Subscriber.cpp index 6e266e6d3b8..766df81d859 100644 --- a/cpp/demo/IceStorm/clock/Subscriber.cpp +++ b/cpp/demo/IceStorm/clock/Subscriber.cpp @@ -37,19 +37,19 @@ Subscriber::run(int argc, char* argv[]) { Ice::PropertiesPtr properties = communicator()->getProperties(); - static const string referenceProperty = "IceStorm.TopicManager"; - string reference = properties->getProperty(referenceProperty); - if(reference.empty()) + static const string proxyProperty = "IceStorm.TopicManager.Proxy"; + string proxy = properties->getProperty(proxyProperty); + if(proxy.empty()) { - cerr << appName() << ": property `" << referenceProperty << "' not set" << endl; + cerr << appName() << ": property `" << proxyProperty << "' not set" << endl; return EXIT_FAILURE; } - Ice::ObjectPrx base = communicator()->stringToProxy(reference); + Ice::ObjectPrx base = communicator()->stringToProxy(proxy); IceStorm::TopicManagerPrx manager = IceStorm::TopicManagerPrx::checkedCast(base); if(!manager) { - cerr << appName() << ": invalid object reference" << endl; + cerr << appName() << ": invalid proxy" << endl; return EXIT_FAILURE; } @@ -81,7 +81,7 @@ Subscriber::run(int argc, char* argv[]) // // Create the servant to receive the events. // - Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapterWithEndpoints("ClockAdapter", "tcp"); + Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("Clock.Subscriber"); Ice::ObjectPtr clock = new ClockI(); // |