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