summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/acm/TestI.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-12-12 20:01:19 +0100
committerJose <jose@zeroc.com>2014-12-12 20:01:19 +0100
commitfe54e00a21972b6e21ace0468f79c59448c4330f (patch)
treed387216b7fba41aa509be41bc976937760083451 /cpp/test/Ice/acm/TestI.cpp
parentFixed (ICE-6174) - Android browser test Ice/binding fails with java server (diff)
downloadice-fe54e00a21972b6e21ace0468f79c59448c4330f.tar.bz2
ice-fe54e00a21972b6e21ace0468f79c59448c4330f.tar.xz
ice-fe54e00a21972b6e21ace0468f79c59448c4330f.zip
Fixed (ICE-6173) - Android browser test Ice/acm fails with Java server
Diffstat (limited to 'cpp/test/Ice/acm/TestI.cpp')
-rw-r--r--cpp/test/Ice/acm/TestI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/test/Ice/acm/TestI.cpp b/cpp/test/Ice/acm/TestI.cpp
index 251700af03c..46a54d3c22e 100644
--- a/cpp/test/Ice/acm/TestI.cpp
+++ b/cpp/test/Ice/acm/TestI.cpp
@@ -34,6 +34,7 @@ RemoteCommunicatorI::createObjectAdapter(int timeout, int close, int heartbeat,
Ice::CommunicatorPtr com = current.adapter->getCommunicator();
Ice::PropertiesPtr properties = com->getProperties();
string protocol = properties->getPropertyWithDefault("Ice.Default.Protocol", "tcp");
+ string host = properties->getPropertyWithDefault("Ice.Default.Host", "127.0.0.1");
string name = IceUtil::generateUUID();
if(timeout >= 0)
@@ -49,7 +50,7 @@ RemoteCommunicatorI::createObjectAdapter(int timeout, int close, int heartbeat,
properties->setProperty(name + ".ACM.Heartbeat", toString(heartbeat));
}
properties->setProperty(name + ".ThreadPool.Size", "2");
- ObjectAdapterPtr adapter = com->createObjectAdapterWithEndpoints(name, protocol);
+ ObjectAdapterPtr adapter = com->createObjectAdapterWithEndpoints(name, protocol + " -h " + host);
return RemoteObjectAdapterPrx::uncheckedCast(current.adapter->addWithUUID(new RemoteObjectAdapterI(adapter)));
}