summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/exceptions/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/exceptions/Server.cpp')
-rw-r--r--cpp/test/Ice/exceptions/Server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/test/Ice/exceptions/Server.cpp b/cpp/test/Ice/exceptions/Server.cpp
index ff25f39b2ef..25129f353f5 100644
--- a/cpp/test/Ice/exceptions/Server.cpp
+++ b/cpp/test/Ice/exceptions/Server.cpp
@@ -18,8 +18,8 @@ run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator)
{
Ice::PropertiesPtr properties = communicator->getProperties();
properties->setProperty("Ice.ConnectionWarnings", "0");
- string endpts = "default -p 12345 -t 2000";
- Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts);
+ communicator->getProperties()->setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000");
+ Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapter("TestAdapter");
Ice::ObjectPtr object = new ThrowerI(adapter);
adapter->add(object, Ice::stringToIdentity("thrower"));
adapter->activate();