You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yoko-commits@incubator.apache.org by dm...@apache.org on 2006/06/23 14:16:56 UTC
svn commit: r416727 - in
/incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world:
README.txt src/corba/client/Client.java
Author: dmiddlem
Date: Fri Jun 23 07:16:55 2006
New Revision: 416727
URL: http://svn.apache.org/viewvc?rev=416727&view=rev
Log:
Updates for the ws demo (updated readme and make the corba client behave
more like the yoko client)
Modified:
incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/README.txt
incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/src/corba/client/Client.java
Modified: incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/README.txt
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/README.txt?rev=416727&r1=416726&r2=416727&view=diff
==============================================================================
--- incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/README.txt (original)
+++ incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/README.txt Fri Jun 23 07:16:55 2006
@@ -37,8 +37,8 @@
for our client.
-Building and running the demo using ant (First use case).
-----------------------------------------------------------
+Building and running the demo using ant.
+----------------------------------------
From the samples/ws/hello_world directory, the ant build script
can be used to build and run the demo.
@@ -57,7 +57,10 @@
</wsdl:service>
Please make sure that the address location you specify for the service & in the
-Server(yoko/server/Server.java) class matches.
+Server(yoko/server/Server.java) class matches. Also ensure that the
+address matches those defined in the corba client (corba/client/Client.java) and
+server (corba/server/Server.java) classes if you are using the second and
+third use cases.
Then run,
@@ -73,21 +76,21 @@
-Running the demo
------------------
+Running the demo (First use case).
+----------------------------------
-From the samples/ws/hello_world directory run the commands, entered on a
+From the samples/ws/hello_world directory run the commands, enter on a
single command line:
We have to set the Xbootclasspath because the ORB classes in yoko conflicts with the jdk classes.
For UNIX (must use forward slashes):
java -Xbootclasspath/p:$YOKO_HOME/lib/yoko-core-1.0-incubating-M1-SNAPSHOT.jar
- -Dceltix.config.file=file:/$YOKO_HOME/samples/ws/hello_world/etc/corba_bus_config.xml
+ -Dceltix.config.file=file:$YOKO_HOME/samples/ws/etc/corba_bus_config.xml
-classpath $CLASSPATH:build/classes yoko.server.Server &
java -Xbootclasspath/p:$YOKO_HOME%/lib/yoko-core-1.0-incubating-M1-SNAPSHOT.jar
- -Dceltix.config.file=file:/$YOKO_HOME/samples/ws/hello_world/etc/corba_bus_config.xml
+ -Dceltix.config.file=file:$YOKO_HOME/samples/ws/etc/corba_bus_config.xml
-classpath $CLASSPATH:build/classes yoko.client.Client <Name>
The server process starts in the background. After running the client,
@@ -96,12 +99,72 @@
For Windows (may use either forward or back slashes):
start
java -Xbootclasspath/p:%YOKO_HOME%\lib\yoko-core-1.0-incubating-M1-SNAPSHOT.jar
- -Dceltix.config.file=file:/%YOKO_HOME%\samples\ws\hello_world\etc\corba_bus_config.xml
+ -Dceltix.config.file=file:/%YOKO_HOME%\samples\ws\etc\corba_bus_config.xml
-classpath %CLASSPATH%;build\classes yoko.server.Server
java -Xbootclasspath/p:%YOKO_HOME%\lib\yoko-core-1.0-incubating-M1-SNAPSHOT.jar
- -Dceltix.config.file=file:/%YOKO_HOME%\samples\ws\hello_world\etc\corba_bus_config.xml
+ -Dceltix.config.file=file:/%YOKO_HOME%\samples\ws\etc\corba_bus_config.xml
-classpath %CLASSPATH%;build\classes yoko.client.Client <Name>
+
+A new command windows opens for the server process. After running the
+client, terminate the server process by issuing Ctrl-C in its command window.
+
+
+Running the demo (Second use case).
+----------------------------------
+
+From the samples/ws/hello_world directory run the commands, enter on a
+single command line:
+
+For UNIX (must use forward slashes):
+ java -Xbootclasspath/p:$YOKO_HOME/lib/yoko-core-1.0-incubating-M1-SNAPSHOT.jar
+ -classpath $CLASSPATH:build/classes corba.server.Server &
+
+ java -Xbootclasspath/p:$YOKO_HOME%/lib/yoko-core-1.0-incubating-M1-SNAPSHOT.jar
+ -Dceltix.config.file=file:$YOKO_HOME/samples/ws/etc/corba_bus_config.xml
+ -classpath $CLASSPATH:build/classes yoko.client.Client <Name>
+
+The server process starts in the background. After running the client,
+use the kill command to terminate the server process.
+
+For Windows (may use either forward or back slashes):
+ start
+ java -Xbootclasspath/p:%YOKO_HOME%\lib\yoko-core-1.0-incubating-M1-SNAPSHOT.jar
+ -classpath %CLASSPATH%;build\classes corba.server.Server
+
+ java -Xbootclasspath/p:%YOKO_HOME%\lib\yoko-core-1.0-incubating-M1-SNAPSHOT.jar
+ -Dceltix.config.file=file:/%YOKO_HOME%\samples\ws\etc\corba_bus_config.xml
+ -classpath %CLASSPATH%;build\classes yoko.client.Client <Name>
+
+A new command windows opens for the server process. After running the
+client, terminate the server process by issuing Ctrl-C in its command window.
+
+
+Running the demo (Third use case).
+----------------------------------
+
+From the samples/ws/hello_world directory run the commands, enter on a
+single command line:
+
+For UNIX (must use forward slashes):
+ java -Xbootclasspath/p:$YOKO_HOME/lib/yoko-core-1.0-incubating-M1-SNAPSHOT.jar
+ -Dceltix.config.file=file:$YOKO_HOME/samples/ws/etc/corba_bus_config.xml
+ -classpath $CLASSPATH:build/classes yoko.server.Server &
+
+ java -Xbootclasspath/p:$YOKO_HOME%/lib/yoko-core-1.0-incubating-M1-SNAPSHOT.jar
+ -classpath $CLASSPATH:build/classes corba.client.Client <Name>
+
+The server process starts in the background. After running the client,
+use the kill command to terminate the server process.
+
+For Windows (may use either forward or back slashes):
+ start
+ java -Xbootclasspath/p:%YOKO_HOME%\lib\yoko-core-1.0-incubating-M1-SNAPSHOT.jar
+ -Dceltix.config.file=file:/%YOKO_HOME%\samples\ws\etc\corba_bus_config.xml
+ -classpath %CLASSPATH%;build\classes yoko.server.Server
+
+ java -Xbootclasspath/p:%YOKO_HOME%\lib\yoko-core-1.0-incubating-M1-SNAPSHOT.jar
+ -classpath %CLASSPATH%;build\classes corba.client.Client <Name>
A new command windows opens for the server process. After running the
client, terminate the server process by issuing Ctrl-C in its command window.
Modified: incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/src/corba/client/Client.java
URL: http://svn.apache.org/viewvc/incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/src/corba/client/Client.java?rev=416727&r1=416726&r2=416727&view=diff
==============================================================================
--- incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/src/corba/client/Client.java (original)
+++ incubator/yoko/trunk/distribution/src/main/samples/ws/hello_world/src/corba/client/Client.java Fri Jun 23 07:16:55 2006
@@ -39,7 +39,12 @@
// Test our narrowed "hello" object
System.out.println("Invoking greetMe...");
- String result = hello.greetMe(new String());
+ String result = null;
+ if (args.length > 0) {
+ result = hello.greetMe(args[args.length - 1]);
+ } else {
+ result = hello.greetMe(new String());
+ }
System.out.println("greetMe.result = " + result);
return 0;