diff options
Diffstat (limited to 'java/test/Ice/operations/Server.java')
-rw-r--r-- | java/test/Ice/operations/Server.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/java/test/Ice/operations/Server.java b/java/test/Ice/operations/Server.java index 80594eb5857..768313556d6 100644 --- a/java/test/Ice/operations/Server.java +++ b/java/test/Ice/operations/Server.java @@ -13,12 +13,9 @@ public class Server private static int run(String[] args, Ice.Communicator communicator) { - String endpts = "default -p 12345 -t 2000"; - Ice.ObjectAdapter adapter = - communicator.createObjectAdapterWithEndpoints("TestAdapter", - endpts); - Ice.Object object = - new MyDerivedClassI(adapter, Ice.Util.stringToIdentity("test")); + communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter"); + Ice.Object object = new MyDerivedClassI(adapter, Ice.Util.stringToIdentity("test")); adapter.add(object, Ice.Util.stringToIdentity("test")); adapter.activate(); communicator.waitForShutdown(); |