summaryrefslogtreecommitdiff
path: root/cpp/test/IceStorm/single/Subscriber.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-09-17 20:07:21 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-09-17 20:07:21 +0000
commitb088474b393fcae37ef8cccd9ab813ffdfe16b01 (patch)
treef681a8a2b118609ed4532fd2a4176adc421ac0cf /cpp/test/IceStorm/single/Subscriber.cpp
parentAdded --case-sensitive option. (diff)
downloadice-b088474b393fcae37ef8cccd9ab813ffdfe16b01.tar.bz2
ice-b088474b393fcae37ef8cccd9ab813ffdfe16b01.tar.xz
ice-b088474b393fcae37ef8cccd9ab813ffdfe16b01.zip
Fix bug introduced with OA changes
Diffstat (limited to 'cpp/test/IceStorm/single/Subscriber.cpp')
-rw-r--r--cpp/test/IceStorm/single/Subscriber.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/IceStorm/single/Subscriber.cpp b/cpp/test/IceStorm/single/Subscriber.cpp
index 23f3ca1db29..58a45de9c5f 100644
--- a/cpp/test/IceStorm/single/Subscriber.cpp
+++ b/cpp/test/IceStorm/single/Subscriber.cpp
@@ -77,6 +77,7 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator)
{
lockfile = argv[1];
}
+
createLock(lockfile);
const char* managerProxyProperty = "IceStorm.TopicManager.Proxy";
@@ -95,8 +96,7 @@ run(int argc, char* argv[], const CommunicatorPtr& communicator)
return EXIT_FAILURE;
}
- properties->setProperty("SingleAdapter", "default");
- ObjectAdapterPtr adapter = communicator->createObjectAdapter("SingleAdapter");
+ ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("SingleAdapter", "default");
ObjectPtr single = new SingleI(communicator);
ObjectPrx object = adapter->add(single, stringToIdentity("single/events"));