diff options
author | Matthew Newhook <matthew@zeroc.com> | 2007-01-30 11:04:51 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2007-01-30 11:04:51 +0000 |
commit | fd675fdaff4dfa73678effd765a52209967567c7 (patch) | |
tree | 2943032021c6bf8329da6330b02af24ba6cad6bc /cpp/test/IceStorm/federation2/Subscriber.cpp | |
parent | cleanup IceStorm tests. (diff) | |
download | ice-fd675fdaff4dfa73678effd765a52209967567c7.tar.bz2 ice-fd675fdaff4dfa73678effd765a52209967567c7.tar.xz ice-fd675fdaff4dfa73678effd765a52209967567c7.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=1711
Diffstat (limited to 'cpp/test/IceStorm/federation2/Subscriber.cpp')
-rw-r--r-- | cpp/test/IceStorm/federation2/Subscriber.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/cpp/test/IceStorm/federation2/Subscriber.cpp b/cpp/test/IceStorm/federation2/Subscriber.cpp index 0cbc16d779b..88a4408c54d 100644 --- a/cpp/test/IceStorm/federation2/Subscriber.cpp +++ b/cpp/test/IceStorm/federation2/Subscriber.cpp @@ -125,14 +125,18 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator) // // Activate the servants. // - ObjectPrx objFed1 = adapter->addWithUUID(eventFed1); + ObjectPrx obj = adapter->addWithUUID(eventFed1); adapter->activate(); IceStorm::QoS qos; if(batch) { - qos["reliability"] = "batch"; + obj = obj->ice_batchOneway(); + } + else + { + obj = obj->ice_oneway(); } TopicPrx fed1; @@ -147,11 +151,11 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator) return EXIT_FAILURE; } - fed1->subscribe(qos, objFed1); + fed1->subscribeAndGetPublisher(qos, obj); communicator->waitForShutdown(); - fed1->unsubscribe(objFed1); + fed1->unsubscribe(obj); return EXIT_SUCCESS; } |