diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-04-07 13:59:51 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-04-07 13:59:51 +0000 |
commit | 800586d551a7631b0b0caeef697935af5e8140eb (patch) | |
tree | dadf42ec253537203ccb1428ce1844f0dfc2f8db /java/test/Ice/exceptions/Server.java | |
parent | Bug 803 - changed communicator initialization. (diff) | |
download | ice-800586d551a7631b0b0caeef697935af5e8140eb.tar.bz2 ice-800586d551a7631b0b0caeef697935af5e8140eb.tar.xz ice-800586d551a7631b0b0caeef697935af5e8140eb.zip |
Bug 803 - Changed communicator initialzation
Diffstat (limited to 'java/test/Ice/exceptions/Server.java')
-rw-r--r-- | java/test/Ice/exceptions/Server.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/java/test/Ice/exceptions/Server.java b/java/test/Ice/exceptions/Server.java index bb087ef372f..19b8f86a150 100644 --- a/java/test/Ice/exceptions/Server.java +++ b/java/test/Ice/exceptions/Server.java @@ -12,12 +12,6 @@ public class Server private static int run(String[] args, Ice.Communicator communicator) { - // - // For this test, we need a dummy logger, otherwise the - // assertion test will print an error message. - // - communicator.setLogger(new DummyLogger()); - Ice.Properties properties = communicator.getProperties(); // We don't need to disable warnings, because we have a dummy logger. //properties.setProperty("Ice.Warn.Dispatch", "0"); @@ -38,7 +32,14 @@ public class Server try { - communicator = Ice.Util.initialize(args); + // + // For this test, we need a dummy logger, otherwise the + // assertion test will print an error message. + // + Ice.InitializationData initData = new Ice.InitializationData(); + initData.logger = new DummyLogger(); + + communicator = Ice.Util.initialize(args, initData); status = run(args, communicator); } catch(Ice.LocalException ex) |