summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/locationForward/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/locationForward/Server.cpp')
-rw-r--r--cpp/test/Ice/locationForward/Server.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/test/Ice/locationForward/Server.cpp b/cpp/test/Ice/locationForward/Server.cpp
index fdeb807d092..2765e71003a 100644
--- a/cpp/test/Ice/locationForward/Server.cpp
+++ b/cpp/test/Ice/locationForward/Server.cpp
@@ -62,8 +62,9 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
}
ostringstream endpts;
- endpts << "default -p " << port;
- Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts.str());
+ endpts << "default -p " << port;
+ communicator->getProperties()->setProperty("TestAdapter.Endpoints", endpts.str());
+ Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = new TestI(adapter, fwd);
adapter->add(object, Ice::stringToIdentity("test"));
adapter->activate();