You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2006/05/16 15:23:27 UTC
svn commit: r406932 - in /incubator/tuscany/java/samples/sca:
calculator/readme.htm helloworld-jms/client/readme.htm
helloworld-jms/server/readme.htm helloworld/readme.htm
helloworldwsclient/readme.htm
Author: antelder
Date: Tue May 16 06:23:26 2006
New Revision: 406932
URL: http://svn.apache.org/viewcvs?rev=406932&view=rev
Log:
start of sample setup/running changes
Modified:
incubator/tuscany/java/samples/sca/calculator/readme.htm
incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm
incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm
incubator/tuscany/java/samples/sca/helloworld/readme.htm
incubator/tuscany/java/samples/sca/helloworldwsclient/readme.htm
Modified: incubator/tuscany/java/samples/sca/calculator/readme.htm
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/calculator/readme.htm?rev=406932&r1=406931&r2=406932&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/calculator/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/calculator/readme.htm Tue May 16 06:23:26 2006
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"><title>Tuscany
HelloWorld</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" -->
@@ -15,13 +15,23 @@
Each component provides a basic operation (add, subtract, etc).<br>The
main component uses each of these to perrform a simple calculation.</p><h3>Location</h3>This
sample is located in the samples\sca\calculator directory.<br><br>
-<h3>Setup</h3> The
-jars for a <a href="../../../docs/sampleSetup.htm" target="_blank">J2SE
-setup</a> not requiring web
-services are required including the sample's own jar <span style="font-weight: bold;">sample-calculator-SNAPSHOT.jar</span>.
+
+<h3>Setup</h3>This sample depends on the Tuscany runtime and the sample jar,
+
+ <span style="font-weight: bold;">
+ sample-calculator-incubating-M1.jar
+ </span>
+
+, both of these must be available on the classpath to run the sample.
+<ol>
+</ol>
<h3>Running</h3>
-Using JDK 1.5 java command with the previous jars run the class
-org.apache.tuscany.samples.helloworld.HelloWorldClient
+
+ In the directory samples/sca/calculator use the JDK 1.5 java command to run the class calculator.CalculatorClient
+
+ <pre>Linux: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar:target/sample-calculator-incubating-M1.jar calculator.CalculatorClient</pre>
+ <pre>Windows: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;target/sample-calculator-incubating-M1.jar calculator.CalculatorClient</pre>
+
<br><h3>Results</h3>
<p>The sample when run should simply display to the standard
output:<br> <code>Hello World</code></p>
Modified: incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm?rev=406932&r1=406931&r2=406932&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm Tue May 16 06:23:26 2006
@@ -21,19 +21,23 @@
</p>
<h3>Location</h3> This sample is located in the samples\sca\helloworld-jms\client
directory.<br>
- <h3>Setup</h3> The jars for a <a href="../../../../docs/sampleSetup.htm" target="_blank">J2SE
- setup</a> including those necessary for web services are required
- including the sample's own jar
+
+ <h3>Setup</h3>This sample depends on the Tuscany runtime, Celtix, and the sample jar,
+
<span style="font-weight: bold;">
sample-helloworldjms-client-incubating-M1.jar
</span>
- . <h3>Running</h3> Using JDK 1.5 java command with the previous mentioned jars, including the tuscany-celtix.jar,
- run the class helloworld.HelloWorldClient.
- <pre>
- java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar:../../../../lib/celtix/tuscany-celtix-incubating-M1.jar:target/sample-helloworldjms-client-incubating-M1.jar helloworld.HelloWorldClient
- </pre>
-
- <h3>Results</h3>
+
+, all of these must be available on the classpath to run the sample.
+
+<h3>Running</h3>
+
+ In the directory samples/sca/helloworld use the JDK 1.5 java command to run the class helloworld.HelloWorldClient
+
+ <pre>Linux: java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar:../../../../lib/celtix/tuscany-celtix-incubating-M1.jar:target/sample-helloworldjms-client-incubating-M1.jar helloworld.HelloWorldClient</pre>
+ <pre>Windows: java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar;../../../../lib/celtix/tuscany-celtix-incubating-M1.jar;target/sample-helloworldjms-client-incubating-M1.jar helloworld.HelloWorldClient</pre>
+
+ <h3>Results</h3>
<p>
The sample when run should simply display to the standard output:<br>
<code>Hello World</code>
Modified: incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm?rev=406932&r1=406931&r2=406932&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm Tue May 16 06:23:26 2006
@@ -22,6 +22,31 @@
</p>
<h3>Location</h3> This sample is located in the samples\sca\helloworld-jms\server
directory.<br>
+
+ <h3>Setup</h3>This sample depends on the Tuscany runtime, Celtix, and the sample jar,
+
+ <span style="font-weight: bold;">
+ sample-helloworldjms-service-incubating-M1.jar
+ </span>
+
+, all of these must be available on the classpath to run the sample.
+
+<h3>Running</h3>
+
+ In the directory samples/sca/helloworld-jms/server use the JDK 1.5 java command to start the JMS broker and then run the class helloworld.HelloWorldServer.
+
+ <pre>Linux:<br>
+
+ java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar:../../../../lib/celtix/tuscany-celtix-incubating-M1.jar org.activemq.spring.Main activemq.xml
+ java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar:../../../../lib/celtix/tuscany-celtix-incubating-M1.jar:target/sample-helloworldjms-service-incubating-M1.jar helloworld.HelloWorldServer
+ </pre>
+
+ <pre>Windows:<br>
+ java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar;../../../../lib/celtix/tuscany-celtix-incubating-M1.jar org.activemq.spring.Main activemq.xml
+ java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar;../../../../lib/celtix/tuscany-celtix-incubating-M1.jar;target/sample-helloworldjms-service-incubating-M1.jar helloworld.HelloWorldServer
+ </pre>
+
+
<h3>Setup</h3>
The jars for a <a href="../../../../docs/sampleSetup.htm" target="_blank">J2SE
setup</a> including those necessary for web services are required
Modified: incubator/tuscany/java/samples/sca/helloworld/readme.htm
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld/readme.htm?rev=406932&r1=406931&r2=406932&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworld/readme.htm Tue May 16 06:23:26 2006
@@ -15,17 +15,21 @@
implements the classic introductory hello world example.</p>
<h3>Location</h3>This
sample is located in the samples\sca\helloworld directory.<br><br>
-<h3>Setup</h3> The
-jars for a <a href="../../../docs/sampleSetup.htm" target="_blank">J2SE
-setup</a> not requiring web
-services are required including the sample's own jar <span style="font-weight: bold;">sample-helloworld-incubating-M1.jar</span>.
+<h3>Setup</h3>This sample depends on the Tuscany runtime and the sample jar,
+
+ <span style="font-weight: bold;">
+ sample-helloworld-incubating-M1.jar
+ </span>
+
+, both of these must be available on the classpath to run the sample.
<ol>
</ol>
<h3>Running</h3>
-In the directory samples/sca/helloworld use the JDK 1.5 java command with the previous mentioned jars, run the class helloworld.HelloWorldClient
- <pre>
- java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;target/sample-helloworld-incubating-M1.jar helloworld.HelloWorldClient
- </pre>
+
+ In the directory samples/sca/helloworld use the JDK 1.5 java command to run the class helloworld.HelloWorldClient
+
+ <pre>Linux: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar:target/sample-helloworld-incubating-M1.jar helloworld.HelloWorldClient</pre>
+ <pre>Windows: java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;target/sample-helloworld-incubating-M1.jar helloworld.HelloWorldClient</pre>
<h3>Results</h3>
<p>The sample when run should simply display to the standard
Modified: incubator/tuscany/java/samples/sca/helloworldwsclient/readme.htm
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldwsclient/readme.htm?rev=406932&r1=406931&r2=406932&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldwsclient/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworldwsclient/readme.htm Tue May 16 06:23:26 2006
@@ -1,4 +1,4 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><!-- Copyright (c) 2005 The Apache Software Foundation or its licensors, as applicable. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="Content-Style-Type" content="text/css"><title>Tuscany
Hello World Web Sample</title> <!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven --><style type="text/css" media="all">
@@ -20,6 +20,14 @@
<h3>Running</h3>
Using JDK 1.5 java command with the previous mentioned jars run the
class elloworldwsclient.HelloWorldClient
+
+<h3>Running</h3>
+In the directory samples/sca/helloworldwsclient use the JDK 1.5 java command with the previous mentioned jars, run the class helloworld.HelloWorldClient
+ <pre>
+ java -cp ../../../lib/tuscany-runtime-incubating-M1.jar;../../../lib/axis2/tuscany-axis2-incubating-M1.jar;target/sample-helloworldwsclient-incubating-M1.jar helloworld.HelloWorldClient
+ </pre>
+
+
<h3>Results</h3>
<p>The sample when run should simply display to the standard
output:<br> <code>Hello World</code></p>