diff options
author | Benoit Foucher <benoit@zeroc.com> | 2002-09-11 20:34:21 +0000 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2002-09-11 20:34:21 +0000 |
commit | 587b22683496852e9ad2f8673ff774da03242ac6 (patch) | |
tree | e764bc30225eac43d58d6fb1345aefc25ea974e9 /java/test/Ice/inheritance/Server.java | |
parent | Object adapter creation method changes, IceBox changes. (diff) | |
download | ice-587b22683496852e9ad2f8673ff774da03242ac6.tar.bz2 ice-587b22683496852e9ad2f8673ff774da03242ac6.tar.xz ice-587b22683496852e9ad2f8673ff774da03242ac6.zip |
Object adapter creation method changes, IceBox fixes.
Diffstat (limited to 'java/test/Ice/inheritance/Server.java')
-rw-r--r-- | java/test/Ice/inheritance/Server.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/java/test/Ice/inheritance/Server.java b/java/test/Ice/inheritance/Server.java index f6cf4757b45..524385b4c00 100644 --- a/java/test/Ice/inheritance/Server.java +++ b/java/test/Ice/inheritance/Server.java @@ -13,10 +13,8 @@ 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); + communicator.getProperties().setProperty("TestAdapter.Endpoints", "default -p 12345 -t 2000"); + Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter"); Ice.Object object = new InitialI(adapter); adapter.add(object, Ice.Util.stringToIdentity("initial")); adapter.activate(); |