summaryrefslogtreecommitdiff
path: root/cpp/test/IceStorm/single/Subscriber.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2002-02-28 17:30:43 +0000
committerMatthew Newhook <matthew@zeroc.com>2002-02-28 17:30:43 +0000
commita0262246c57db3d224f2c6bc60b93b0af9ba091e (patch)
treee19a2b3ea3bddcd94c03e4fc5012fb4ad6a10328 /cpp/test/IceStorm/single/Subscriber.cpp
parentfixes (diff)
downloadice-a0262246c57db3d224f2c6bc60b93b0af9ba091e.tar.bz2
ice-a0262246c57db3d224f2c6bc60b93b0af9ba091e.tar.xz
ice-a0262246c57db3d224f2c6bc60b93b0af9ba091e.zip
IceStorm changes
Diffstat (limited to 'cpp/test/IceStorm/single/Subscriber.cpp')
-rw-r--r--cpp/test/IceStorm/single/Subscriber.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/cpp/test/IceStorm/single/Subscriber.cpp b/cpp/test/IceStorm/single/Subscriber.cpp
index aae8fc240fe..fc91cb09767 100644
--- a/cpp/test/IceStorm/single/Subscriber.cpp
+++ b/cpp/test/IceStorm/single/Subscriber.cpp
@@ -92,19 +92,13 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator)
ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("SingleAdapter", "default");
ObjectPtr single = new SingleI(communicator);
- ObjectPrx object = adapter->add(single, stringToIdentity("events#single"));
-
- //
- // The set of topics to which to subscribe
- //
- IceStorm::StringSeq topics;
- topics.push_back("single");
+ ObjectPrx object = adapter->add(single, stringToIdentity("single#events"));
IceStorm::QoS qos;
//TODO: qos["reliability"] = "batch";
try
{
- manager->subscribe("events", qos, topics, object);
+ manager->subscribe(qos, object);
}
catch(const IceStorm::NoSuchTopic& e)
{