summaryrefslogtreecommitdiff
path: root/java/test/Ice/invoke/Server.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-11-26 14:18:59 -0330
committerDwayne Boone <dwayne@zeroc.com>2009-11-26 14:18:59 -0330
commiteb9894afe8da3a9ef6a7da0ca27e0a6b32676b0c (patch)
treeb0abd1a4d60e7842b1b74ac8c9bbb02797db8a8b /java/test/Ice/invoke/Server.java
parentRemoved getCookie from C# AsyncResult (diff)
downloadice-eb9894afe8da3a9ef6a7da0ca27e0a6b32676b0c.tar.bz2
ice-eb9894afe8da3a9ef6a7da0ca27e0a6b32676b0c.tar.xz
ice-eb9894afe8da3a9ef6a7da0ca27e0a6b32676b0c.zip
Added invoke test
Cleaned up invoke demo Fixed order of paramaters in end_ice_invoke in C++
Diffstat (limited to 'java/test/Ice/invoke/Server.java')
-rw-r--r--java/test/Ice/invoke/Server.java48
1 files changed, 48 insertions, 0 deletions
diff --git a/java/test/Ice/invoke/Server.java b/java/test/Ice/invoke/Server.java
new file mode 100644
index 00000000000..2cf3bb7cdc2
--- /dev/null
+++ b/java/test/Ice/invoke/Server.java
@@ -0,0 +1,48 @@
+// **********************************************************************
+//
+// 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.invoke;
+
+public class Server extends test.Util.Application
+{
+ public int run(String[] args)
+ {
+ boolean async = false;
+ for(int i = 0; i < args.length; ++i)
+ {
+ if(args[i].equals("--async"))
+ {
+ async = true;
+ }
+ }
+
+ communicator().getProperties().setProperty("TestAdapter.Endpoints", "default -p 12010:udp");
+ Ice.ObjectAdapter adapter = communicator().createObjectAdapter("TestAdapter");
+ adapter.addServantLocator(new ServantLocatorI(async), "");
+ 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.invoke");
+ return initData;
+ }
+
+ public static void main(String[] args)
+ {
+ Server c = new Server();
+ int status = c.main("Server", args);
+
+ System.gc();
+ System.exit(status);
+ }
+}