diff options
author | Benoit Foucher <benoit@zeroc.com> | 2009-11-23 13:28:08 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2009-11-23 13:28:08 +0100 |
commit | 2c578015edcb36cdc0acd0227295de1dcca1b995 (patch) | |
tree | e163980b5dabb43a40089a29fdf8ff47a3e07f1c /java/test/Ice/operations/Server.java | |
parent | no longer generating inspect method for each Ruby exception (diff) | |
download | ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.bz2 ice-2c578015edcb36cdc0acd0227295de1dcca1b995.tar.xz ice-2c578015edcb36cdc0acd0227295de1dcca1b995.zip |
New AMI mapping
Diffstat (limited to 'java/test/Ice/operations/Server.java')
-rw-r--r-- | java/test/Ice/operations/Server.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/java/test/Ice/operations/Server.java b/java/test/Ice/operations/Server.java index babada1d50a..cc07322246f 100644 --- a/java/test/Ice/operations/Server.java +++ b/java/test/Ice/operations/Server.java @@ -18,6 +18,11 @@ public class Server extends test.Util.Application adapter.add(new MyDerivedClassI(), communicator().stringToIdentity("test")); adapter.activate(); + communicator().getProperties().setProperty("HoldAdapter.Endpoints", "default -p 12011:udp"); + Ice.ObjectAdapter holdAdapter = communicator().createObjectAdapter("HoldAdapter"); + holdAdapter.add(new StateChangerI(new java.util.Timer(), adapter), communicator().stringToIdentity("hold")); + holdAdapter.activate(); + return WAIT; } @@ -26,13 +31,12 @@ public class Server extends test.Util.Application Ice.InitializationData initData = new Ice.InitializationData(); initData.properties = Ice.Util.createProperties(argsH); // - // Its possible to have batch oneway requests dispatched + // It's possible to have batch oneway requests dispatched // after the adapter is deactivated due to thread - // scheduling so we supress this warning. + // scheduling so we suppress this warning. // initData.properties.setProperty("Ice.Warn.Dispatch", "0"); initData.properties.setProperty("Ice.Package.Test", "test.Ice.operations"); - initData.properties.setProperty("TestAdapter.Endpoints", "default -p 12010:udp"); return initData; } |