1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
10 public class Server
extends Ice
.Application
17 System
.err
.println(appName() + ": too many arguments");
21 Ice
.ObjectAdapter adapter
= communicator().createObjectAdapter("Value");
22 Ice
.Object object
= new InitialI(adapter
);
23 adapter
.add(object
, communicator().stringToIdentity("initial"));
25 communicator().waitForShutdown();
32 Server app
= new Server();
33 int status
= app
.main("Server", args
, "config.server");