ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Ws Wiki] Update of "XmlRpcExampleStringArray" by KenTanaka
Date Fri, 10 Jul 2009 18:19:36 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Ws Wiki" for change notification.

The following page has been changed by KenTanaka:

The comment on the change is:
Added notes on compiling and running the client

  == Compiling ==
- Compile the source code with
+ You should be at the top level of the source code tree for `myXmlRpcServer`, where the `pom.xml`
file is located. Compile the source code with
  mvn clean package
@@ -472, +472 @@

+ The port variable should be set to match the tomcat port running `myXmlRpcServer` (8080,
8084 if in Net''''''Beans)
+ == Compiling ==
+ You should be at the top level of the source code tree for `myXmlRpcClient`, where the `pom.xml`
file is located. Compile the source code with
+ {{{
+ mvn assembly:assembly
+ }}}
+ This will create an executable jar file in the standard {{{target}}} directory named `myXmlRpcClient-1.0-SNAPSHOT-jar-with-dependencies.jar`.
(You can ignore the shorter/smaller myXmlRpcClient-1.0-SNAPSHOT.jar which does not have the
libraries bundled in. Now might also be a good time to learn about filename completion ;-)
+ == Running ==
+ Assuming you have successfully gotten tomcat running the myXmlRpcServer (described above),
use a command like this to run the example
+ {{{
+ java -jar target/myXmlRpcClient-1.0-SNAPSHOT-jar-with-dependencies.jar
+ }}}
+ === Sample Output ===
+ On a successful run you should see output like this:
+ {{{
+ Starting myXmlRpcClient
+ connecting to
+ Client received fileCount=100000
+ Listing Length=100000
+   First 10:
+     sample_bwhmjcgwyxlqplhtk
+     sample_doebwifflzjkdcyedhevenrp
+     sample_jucqase
+     sample_mmhogjqyabkueecrezxtgofbpqpwvrbctxhkiwse
+     sample_q
+     sample_kpzneuekyphzfqakfesfiklnfffctownhvm
+     sample_cyeafzfpupqnfqomxjbdbupatdcaxh
+     sample_kkjtqwbhsfejkyb
+     sample_albkokpxazwuzerodddigdpkbxkmztckyp
+     sample_eptoxnmckydxbiwhalljf
+ }}}
+ The first time you run this client against the server it will take longer, since the server
generates the filenames on the first request. If you run this client again, you should see
the same names, but quicker. If you restart the myXmlRpcServer service or restart tomcat the
list of filenames should change.
+ On my system 1 million files take 6 seconds the first time, and 3 seconds thereafter, so
3 seconds are used to generate 1M random names and about 3 seconds are needed to send 1M files
between programs (on the same system). If the client and server are on separate systems, then
your network bandwidth should make the transport time go up quite a bit.

View raw message