summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/faultTolerance/Server.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2002-09-11 20:33:06 +0000
committerBenoit Foucher <benoit@zeroc.com>2002-09-11 20:33:06 +0000
commitaf019e080ac9319035abe899838bc6ff7bf7e435 (patch)
tree754643a46a0f0ef381b0a7596fc08a17dcda5cdf /cpp/test/Ice/faultTolerance/Server.cpp
parentFix bug in changeTimeout (the newEndpoints were not passed to the (diff)
downloadice-af019e080ac9319035abe899838bc6ff7bf7e435.tar.bz2
ice-af019e080ac9319035abe899838bc6ff7bf7e435.tar.xz
ice-af019e080ac9319035abe899838bc6ff7bf7e435.zip
Object adapter creation method changes, IceBox changes.
Diffstat (limited to 'cpp/test/Ice/faultTolerance/Server.cpp')
-rw-r--r--cpp/test/Ice/faultTolerance/Server.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/test/Ice/faultTolerance/Server.cpp b/cpp/test/Ice/faultTolerance/Server.cpp
index 90c9e33f04e..5f67babd71e 100644
--- a/cpp/test/Ice/faultTolerance/Server.cpp
+++ b/cpp/test/Ice/faultTolerance/Server.cpp
@@ -51,7 +51,8 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
ostringstream endpts;
endpts << "default -p " << port;
- Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts.str());
+ communicator->getProperties()->setProperty("TestAdapter.Endpoints", endpts.str());
+ Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = new TestI(adapter);
adapter->add(object, Ice::stringToIdentity("test"));
adapter->activate();