diff options
Diffstat (limited to 'cpp/test/IceStorm/single/Subscriber.cpp')
-rw-r--r-- | cpp/test/IceStorm/single/Subscriber.cpp | 4 |
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")); |