diff options
author | Mark Spruiell <mes@zeroc.com> | 2013-06-26 16:00:21 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2013-06-26 16:00:21 -0700 |
commit | c9db510fe8e0121747fa81efc01fd329819c50d5 (patch) | |
tree | c74219897f62b8a95e4d3f6f13d078e83249de3b /cpp/demo/IceStorm/replicated2/Subscriber.cpp | |
parent | ICE-5366 icexmld.dll for 64bit wrong (diff) | |
download | ice-c9db510fe8e0121747fa81efc01fd329819c50d5.tar.bz2 ice-c9db510fe8e0121747fa81efc01fd329819c50d5.tar.xz ice-c9db510fe8e0121747fa81efc01fd329819c50d5.zip |
ICE-5320 - fix IceStorm demos
Diffstat (limited to 'cpp/demo/IceStorm/replicated2/Subscriber.cpp')
-rw-r--r-- | cpp/demo/IceStorm/replicated2/Subscriber.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/demo/IceStorm/replicated2/Subscriber.cpp b/cpp/demo/IceStorm/replicated2/Subscriber.cpp index 2baaf336001..fe40c537780 100644 --- a/cpp/demo/IceStorm/replicated2/Subscriber.cpp +++ b/cpp/demo/IceStorm/replicated2/Subscriber.cpp @@ -194,6 +194,11 @@ Subscriber::run(int argc, char* argv[]) ClockPtr clock = new ClockI; Ice::ObjectPrx subscriber = adapter->add(clock, subId); + // + // Activate the object adapter before subscribing. + // + adapter->activate(); + IceStorm::QoS qos; if(!retryCount.empty()) { @@ -248,7 +253,6 @@ Subscriber::run(int argc, char* argv[]) } cout << "reactivating persistent subscriber" << endl; } - adapter->activate(); shutdownOnInterrupt(); communicator()->waitForShutdown(); |