blob: cdcb23ed8e9d5f4f4310b7c62eaddd95e8967bf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
package test.Ice.inheritance;
public class Server extends test.TestHelper
{
public void run(String[] args)
{
Ice.Properties properties = createTestProperties(args);
properties.setProperty("Ice.Package.Test", "test.Ice.inheritance");
try(Ice.Communicator communicator = initialize(properties))
{
communicator.getProperties().setProperty("TestAdapter.Endpoints", getTestEndpoint(0));
Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
Ice.Object object = new InitialI(adapter);
adapter.add(object, Ice.Util.stringToIdentity("initial"));
adapter.activate();
serverReady();
communicator.waitForShutdown();
}
}
}
|