diff options
author | Mark Spruiell <mes@zeroc.com> | 2001-12-13 21:32:49 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2001-12-13 21:32:49 +0000 |
commit | 8a187b0491af6167dadb736a9c1f1bf12d924d4a (patch) | |
tree | 2819f4bdd5c03e7b42dc5aed49aa4edfc4b8e88d /java/demo/Ice/hello/Server.java | |
parent | bug fix (diff) | |
download | ice-8a187b0491af6167dadb736a9c1f1bf12d924d4a.tar.bz2 ice-8a187b0491af6167dadb736a9c1f1bf12d924d4a.tar.xz ice-8a187b0491af6167dadb736a9c1f1bf12d924d4a.zip |
adding build.xml files
Diffstat (limited to 'java/demo/Ice/hello/Server.java')
-rw-r--r-- | java/demo/Ice/hello/Server.java | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/java/demo/Ice/hello/Server.java b/java/demo/Ice/hello/Server.java deleted file mode 100644 index aaaff794435..00000000000 --- a/java/demo/Ice/hello/Server.java +++ /dev/null @@ -1,59 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2001 -// MutableRealms, Inc. -// Huntsville, AL, USA -// -// All Rights Reserved -// -// ********************************************************************** - -public class Server -{ - private static int - run(String[] args, Ice.Communicator communicator) - { - Ice.ObjectAdapter adapter = - communicator.createObjectAdapter("HelloAdapter"); - Ice.Object object = new HelloI(communicator); - adapter.add(new HelloDispatcher(object), "hello"); - adapter.activate(); - communicator.waitForShutdown(); - return 0; - } - - public static void - main(String[] args) - { - int status = 0; - Ice.Communicator communicator = null; - - try - { - Ice.Properties properties = - Ice.Util.createPropertiesFromFile(args, "config"); - communicator = Ice.Util.initializeWithProperties(properties); - status = run(args, communicator); - } - catch(Ice.LocalException ex) - { - ex.printStackTrace(); - status = 1; - } - - if (communicator != null) - { - try - { - communicator.destroy(); - } - catch(Ice.LocalException ex) - { - ex.printStackTrace(); - status = 1; - } - } - - System.exit(status); - } -} |