summaryrefslogtreecommitdiff
path: root/java/test/Ice/info/Server.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2009-10-21 15:47:07 -0700
committerMark Spruiell <mes@zeroc.com>2009-10-21 15:47:07 -0700
commit439bbccae66fc9e41f10c8c73971abdf6821086f (patch)
treea5a338b49cb01820ac59dd6b30ee6ade8d74f557 /java/test/Ice/info/Server.java
parentFixed Windows compile error (diff)
downloadice-439bbccae66fc9e41f10c8c73971abdf6821086f.tar.bz2
ice-439bbccae66fc9e41f10c8c73971abdf6821086f.tar.xz
ice-439bbccae66fc9e41f10c8c73971abdf6821086f.zip
- Implementing ConnectionInfo/EndpointInfo in PHP
- Changing test/Ice/info to use separate client & server - Updating release notes for IceSSL ConnectionInfo
Diffstat (limited to 'java/test/Ice/info/Server.java')
-rw-r--r--java/test/Ice/info/Server.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/java/test/Ice/info/Server.java b/java/test/Ice/info/Server.java
new file mode 100644
index 00000000000..e3403f951da
--- /dev/null
+++ b/java/test/Ice/info/Server.java
@@ -0,0 +1,40 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+package test.Ice.info;
+
+public class Server extends test.Util.Application
+{
+ public int run(String[] args)
+ {
+ Ice.Communicator communicator = communicator();
+ Ice.ObjectAdapter adapter = communicator.createObjectAdapter("TestAdapter");
+ adapter.add(new TestI(), communicator.stringToIdentity("test"));
+ adapter.activate();
+ return WAIT;
+ }
+
+ protected Ice.InitializationData getInitData(Ice.StringSeqHolder argsH)
+ {
+ Ice.InitializationData initData = new Ice.InitializationData();
+ initData.properties = Ice.Util.createProperties(argsH);
+ initData.properties.setProperty("Ice.Package.Test", "test.Ice.proxy");
+ initData.properties.setProperty("TestAdapter.Endpoints", "default -p 12010:udp -p 12010");
+ initData.properties.setProperty("TestAdapter.PublishedEndpoints", "");
+ return initData;
+ }
+
+ public static void main(String[] args)
+ {
+ Server app = new Server();
+ int result = app.main("Server", args);
+ System.gc();
+ System.exit(result);
+ }
+}