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 package test
.Ice
.adapterDeactivation
;
12 public class Server
extends test
.Util
.Application
17 Ice
.ObjectAdapter adapter
= communicator().createObjectAdapter("TestAdapter");
18 Ice
.ServantLocator locator
= new ServantLocatorI();
20 adapter
.addServantLocator(locator
, "");
23 adapter
.waitForDeactivate();
27 protected Ice
.InitializationData
getInitData(Ice
.StringSeqHolder argsH
)
29 Ice
.InitializationData initData
= new Ice
.InitializationData();
30 initData
.properties
= Ice
.Util
.createProperties(argsH
);
31 initData
.properties
.setProperty("Ice.Package.Test", "test.Ice.adapterDeactivation");
32 initData
.properties
.setProperty("TestAdapter.Endpoints", "default -p 12010:udp");
39 Server app
= new Server();
40 int result
= app
.main("Server", args
);