diff options
author | Jose <jose@zeroc.com> | 2014-12-12 20:01:19 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2014-12-12 20:01:19 +0100 |
commit | fe54e00a21972b6e21ace0468f79c59448c4330f (patch) | |
tree | d387216b7fba41aa509be41bc976937760083451 /java/test | |
parent | Fixed (ICE-6174) - Android browser test Ice/binding fails with java server (diff) | |
download | ice-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 'java/test')
-rw-r--r-- | java/test/src/main/java/test/Ice/acm/RemoteCommunicatorI.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/test/src/main/java/test/Ice/acm/RemoteCommunicatorI.java b/java/test/src/main/java/test/Ice/acm/RemoteCommunicatorI.java index 38cb0fc0384..bccf7cba51d 100644 --- a/java/test/src/main/java/test/Ice/acm/RemoteCommunicatorI.java +++ b/java/test/src/main/java/test/Ice/acm/RemoteCommunicatorI.java @@ -21,6 +21,7 @@ public class RemoteCommunicatorI extends _RemoteCommunicatorDisp Ice.Communicator com = current.adapter.getCommunicator(); Ice.Properties properties = com.getProperties(); String protocol = properties.getPropertyWithDefault("Ice.Default.Protocol", "tcp"); + String host = properties.getPropertyWithDefault("Ice.Default.Host", "127.0.0.1"); String name = java.util.UUID.randomUUID().toString(); if(timeout >= 0) @@ -36,7 +37,7 @@ public class RemoteCommunicatorI extends _RemoteCommunicatorDisp properties.setProperty(name + ".ACM.Heartbeat", Integer.toString(heartbeat)); } properties.setProperty(name + ".ThreadPool.Size", "2"); - Ice.ObjectAdapter adapter = com.createObjectAdapterWithEndpoints(name, protocol + " -h 127.0.0.1"); + Ice.ObjectAdapter adapter = com.createObjectAdapterWithEndpoints(name, protocol + " -h " + host); return RemoteObjectAdapterPrxHelper.uncheckedCast( current.adapter.addWithUUID(new RemoteObjectAdapterI(adapter))); } |