diff options
Diffstat (limited to 'javae/demo/IceE/jdk/hello/Server.java')
-rw-r--r-- | javae/demo/IceE/jdk/hello/Server.java | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/javae/demo/IceE/jdk/hello/Server.java b/javae/demo/IceE/jdk/hello/Server.java deleted file mode 100644 index 2617b517e50..00000000000 --- a/javae/demo/IceE/jdk/hello/Server.java +++ /dev/null @@ -1,60 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. -// -// This copy of Ice-E is licensed to you under the terms described in the -// ICEE_LICENSE file included in this distribution. -// -// ********************************************************************** - -import Demo.*; - -public class Server -{ - private static int - run(String[] args, Ice.Communicator communicator) - { - Ice.ObjectAdapter adapter = communicator.createObjectAdapter("Hello"); - Ice.Object object = new HelloI(); - adapter.add(object, communicator.stringToIdentity("hello")); - adapter.activate(); - communicator.waitForShutdown(); - return 0; - } - - public static void - main(String[] args) - { - int status = 0; - Ice.Communicator communicator = null; - - try - { - Ice.InitializationData initData = new Ice.InitializationData(); - initData.properties = Ice.Util.createProperties(); - initData.properties.load("config"); - communicator = Ice.Util.initialize(args, initData); - 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); - } -} |