1
// **********************************************************************
3
// Copyright (c) 2003-2010 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
package test.Ice.info;
12
public class Server extends test.Util.Application
14
public int run(String[] args)
16
Ice.Communicator communicator = communicator();
17
Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
18
adapter.add(new TestI(), communicator.stringToIdentity("test"));
23
protected Ice.InitializationData getInitData(Ice.StringSeqHolder argsH)
25
Ice.InitializationData initData = new Ice.InitializationData();
26
initData.properties = Ice.Util.createProperties(argsH);
27
initData.properties.setProperty("Ice.Package.Test", "test.Ice.proxy");
28
initData.properties.setProperty("TestAdapter.Endpoints", "default -p 12010:udp -p 12010");
32
public static void main(String[] args)
34
Server app = new Server();
35
int result = app.main("Server", args);