From 69ab9df0b58233ca893407b0ef9fae5376413c06 Mon Sep 17 00:00:00 2001 From: Marc Laukien Date: Thu, 6 Dec 2001 20:50:34 +0000 Subject: Ice.DefaultHost, Ice.DefaultProtocol --- cpp/test/Ice/exceptions/Collocated.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'cpp/test/Ice/exceptions/Collocated.cpp') diff --git a/cpp/test/Ice/exceptions/Collocated.cpp b/cpp/test/Ice/exceptions/Collocated.cpp index c8486e3857a..cb2be202a7d 100644 --- a/cpp/test/Ice/exceptions/Collocated.cpp +++ b/cpp/test/Ice/exceptions/Collocated.cpp @@ -16,16 +16,7 @@ using namespace std; int run(int argc, char* argv[], const Ice::CommunicatorPtr& communicator) { - Ice::PropertiesPtr properties = communicator->getProperties(); - - string protocol = properties->getProperty("Ice.Protocol"); - - if (protocol.empty()) - { - protocol = "tcp"; - } - - string endpts = protocol + " -p 12345 -t 2000"; + string endpts = "default -p 12345 -t 2000"; Ice::ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("TestAdapter", endpts); Ice::ObjectPtr object = new ThrowerI(adapter); adapter->add(object, Ice::stringToIdentity("thrower")); -- cgit v1.2.3