Author: rineholt
Date: Sun May 14 08:19:41 2006
New Revision: 406356
URL: http://svn.apache.org/viewcvs?rev=406356&view=rev
Log:
Make the readmes as close as possbile reflect the latest changes.
Added:
incubator/tuscany/java/samples/sca/calculator/readme.htm
Modified:
incubator/tuscany/java/samples/sca/helloworld/readme.htm
incubator/tuscany/java/samples/sca/helloworldweb/readme.htm
incubator/tuscany/java/samples/sca/helloworldws-celtix/readme.htm
incubator/tuscany/java/samples/sca/helloworldws/readme.htm
incubator/tuscany/java/samples/sca/helloworldwsclient/readme.htm
incubator/tuscany/java/samples/sca/readme.htm
Added: incubator/tuscany/java/samples/sca/calculator/readme.htm
URL:
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/calculator/readme.htm?rev=406356&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/calculator/readme.htm (added)
+++ incubator/tuscany/java/samples/sca/calculator/readme.htm Sun May 14
08:19:41 2006
@@ -0,0 +1,43 @@
+<!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" -->
+<style type="text/css" media="all">
[EMAIL PROTECTED] url("../../../../css/maven-base.css");
[EMAIL PROTECTED] url("../../../../css/maven-theme.css");
[EMAIL PROTECTED] url("../../../../css/site.css");
+</style><link rel="stylesheet" href="./css/print.css" type="text/css"
media="print"></head>
+<body><h2>Tuscany
+Calculator Sample</h2>
+<h3>Overview</h3>
+<p>The Tuscany calculator sample shows using the Tuscany SCA
+runtime in a J2SE environment loading several components.
+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>Running</h3>
+Using JDK 1.5 java command with the previous jars run the class
+org.apache.tuscany.samples.helloworld.HelloWorldClient
+<br><h3>Results</h3>
+<p>The sample when run should simply display to the standard
+output:<br> <code>Hello World</code></p>
+<h3>Code Overview</h3>
+The source files are physically organized as shown below:
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2"
cellspacing="2"> <tbody> <tr><td>src<br>+---main<br>
+---java<br> ¦
+---calculator<br>
¦
AddService.java<br>
¦
AddServiceImpl.java<br>
¦
CalculatorClient.java<br>
¦
CalculatorService.java<br>
¦
CalculatorServiceImpl.java<br>
¦
DivideService.java<br>
¦
DivideServiceI
mpl.java<br>
¦
MultiplyService.java<br>
¦
MultiplyServiceImpl.java<br>
¦
SubtractService.java<br>
¦
SubtractServiceImpl.java<br> ¦<br>
+---resources<br>
logging.properties<br>
sca.module<br></td></tr></tbody></table>
+<br><table style="text-align: left; width: 879px; height: 154px;" border="0"
cellpadding="2" cellspacing="2"> <tbody><tr><td style="vertical-align:
top;">sca.module</td>
+<td>Defines the SCA module and component. Defines for the
CalculatorServiceComponent component the Java class that
+implements that component. Wires each of the operation components to
the CalculatorServiceComponent</td> </tr> <tr> <td style="vertical-align:
top;">CalculatorService.java</td>
+<td>Defines the Java interface implemented by the cacomponent.</td>
+</tr> <tr> <td style="vertical-align: top;">CalculatorServiceImpl.java</td>
+<td>Implements the SCA component. Uses the SCA service annotation
+tag on the class to show what SCA interface is being implemented.</td>
+</tr> <tr> <td style="vertical-align: top;">CalculatorClient.java</td>
+<td>Creates a Tuscany runtime and starts it. Obtains
+the module context which was defined by the sca.module file. From the
+module context locates the CalculatorServiceComponent and then
+calls operations on that component to demonstrating it using the multiple
components implementing the operations..</td>
+</tr> </tbody></table><br></body></html>
\ No newline at end of file
Modified: incubator/tuscany/java/samples/sca/helloworld/readme.htm
URL:
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld/readme.htm?rev=406356&r1=406355&r2=406356&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworld/readme.htm Sun May 14
08:19:41 2006
@@ -1,19 +1,20 @@
<!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"
--><style type="text/css" media="all">
+HelloWorld</title><!-- LINK rel="stylesheet" href="ait.css" type="text/css" -->
+<style type="text/css" media="all">
@import url("../../../../css/maven-base.css");
@import url("../../../../css/maven-theme.css");
@import url("../../../../css/site.css");
-</style>
-<link rel="stylesheet" href="./css/print.css" type="text/css"
media="print"></head>
-
-<body><h2>Tuscany Hello World Sample</h2>
+</style><link rel="stylesheet" href="./css/print.css" type="text/css"
media="print"></head>
+<body><h2>Tuscany
+Hello World Sample</h2>
<h3>Overview</h3>
<p>The Tuscany helloworld sample shows using the Tuscany SCA
runtime in a J2SE environment loading a component that
-implements the classic introductory hello world
example.</p><h3>Location</h3>This
-sample is located in the samples\sca\helloworld directory.<br><span
style="font-weight: bold;"><br></span>
+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
@@ -27,14 +28,14 @@
output:<br> <code>Hello World</code></p>
<h3>Code Overview</h3>
The source files are physically organized as shown below:
-<pre>sca.module<br>org<br>+-apache<br> +-tuscany<br> +-samples<br>
+-helloworld<br> HelloWorldClient.java<br><br>HelloWorldService.java<br>
HelloWorldServiceComponentImpl.java<br><br><br></pre><p> </p>
-<table style="text-align: left; width: 879px; height: 154px;" border="0"
cellpadding="2" cellspacing="2"> <tbody>
-<tr> <td style="vertical-align: top;">sca.module</td>
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2"
cellspacing="2"> <tbody> <tr><td>src<br>+---main<br>
+---java<br> ¦
+---helloworld<br>
¦
HelloWorldClient.java<br>
¦
HelloWorldImpl.java<br>
¦
HelloWorldService.java<br> ¦<br>
+---resources<br>
sca.module</td></tr></tbody></table>
+<br>
+<table style="text-align: left; width: 879px; height: 154px;" border="0"
cellpadding="2" cellspacing="2"> <tbody><tr><td style="vertical-align:
top;">sca.module</td>
<td>Defines the SCA module and component. Defines for the
HelloWorldServiceComponent component the Java class that
implements that component</td> </tr> <tr> <td style="vertical-align:
top;">HelloWorldService.java</td>
<td>Defines the Java interface implemented by the component.</td>
-</tr> <tr> <td style="vertical-align:
top;">HelloWorldServiceComponentImpl.java</td>
+</tr> <tr> <td style="vertical-align: top;">HelloWorldImpl.java</td>
<td>Implements the SCA component. Uses the SCA service annotation
tag on the class to show what SCA interface is being implemented.</td>
</tr> <tr> <td style="vertical-align: top;">HelloWorldClient.java</td>
@@ -42,6 +43,4 @@
the module context which was defined by the sca.module file. From the
module context locates the HelloWorldServiceComponent and then
calls the getGreetings method to invoke the component.</td>
-</tr> </tbody>
-</table><br>
-</body></html>
+</tr> </tbody></table><br></body></html>
\ No newline at end of file
Modified: incubator/tuscany/java/samples/sca/helloworldweb/readme.htm
URL:
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldweb/readme.htm?rev=406356&r1=406355&r2=406356&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldweb/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworldweb/readme.htm Sun May 14
08:19:41 2006
@@ -1,7 +1,5 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
-<!--
+<!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");
@@ -18,6 +16,7 @@
-->
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
@@ -34,18 +33,15 @@
- <title>Tuscany Hello World Web Sample</title>
-<!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven -->
- <style type="text/css" media="all">
+
+
+ <title>Tuscany Hello World Web Sample</title><!-- LINK rel="stylesheet"
href="ait.css" type="text/css" --><!-- maven --><style type="text/css"
media="all">
@import url("../../../../css/maven-base.css");
@import url("../../../../css/maven-theme.css");
@import url("../../../../css/site.css");
</style>
- <link rel="stylesheet" href="./css/print.css" type="text/css" media="print">
-<!-- end maven -->
-</head>
-
+ <link rel="stylesheet" href="./css/print.css" type="text/css"
media="print"><!-- end maven --></head>
<body>
@@ -122,7 +118,7 @@
<td>
- <pre>+---main<br>¦ +---java<br>¦ ¦
sca.module<br>¦ ¦<br> <br>¦
+---org<br>¦ +---apache<br>¦
+---tuscany<br> <br>¦
+---samples<br>¦ +---helloworldweb<br>
<br>¦
HelloWorldService.java<br>¦<br>
HelloWorldServiceComponentImpl.java<br>¦<br>+---webapp<br> ¦
HelloWorldWeb.jsp<br> <br> ¦<br> +---WEB-INF<br>
web.xml<br></pre>
+ <pre>src<br>+---main<br> +---java<br> ¦
+---helloworld<br> ¦ HelloWorldImpl.java<br> ¦
HelloWorldService.java<br> ¦<br> +---resources<br>
¦ sca.module<br> ¦<br> +---webapp<br> ¦
HelloWorldWeb.jsp<br> ¦<br> ¦<br>
+---WEB-INF<br> web.xml<br><br></pre>
</td>
@@ -194,7 +190,7 @@
- <td style="vertical-align:
top;">HelloWorldServiceComponentImpl.java</td>
+ <td style="vertical-align: top;">HelloWorldImpl.java</td>
@@ -248,5 +244,4 @@
-</body>
-</html>
+</body></html>
\ No newline at end of file
Modified: incubator/tuscany/java/samples/sca/helloworldws-celtix/readme.htm
URL:
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldws-celtix/readme.htm?rev=406356&r1=406355&r2=406356&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldws-celtix/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworldws-celtix/readme.htm Sun May
14 08:19:41 2006
@@ -1,6 +1,11 @@
-<DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
-<html>
-<head>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html><head><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><style
type="text/css" media="all">
[EMAIL PROTECTED] url("../../../../css/maven-base.css");
[EMAIL PROTECTED] url("../../../../css/maven-theme.css");
[EMAIL PROTECTED] url("../../../../css/site.css");
+ </style><link rel="stylesheet" href="./css/print.css" type="text/css"
media="print"></head><body><doctype transitional//en="" 4.01="" html=""
-//w3c//dtd="" public="">
+
+
<!--
Copyright (c) 2005 The Apache Software Foundation or its licensors, as
applicable.
@@ -18,34 +23,27 @@
-->
- <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">
[EMAIL PROTECTED] url("../../../../css/maven-base.css");
[EMAIL PROTECTED] url("../../../../css/maven-theme.css");
[EMAIL PROTECTED] url("../../../../css/site.css");
- </style>
- <link rel="stylesheet" href="./css/print.css" type="text/css" media="print">
+
+<!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven -->
+
<!-- end maven -->
-</head>
-
-
-<body>
-
-<h2>Tuscany Hello World WS Sample</h2>
-<h3>Overview</h3> The Tuscany hello world WS sample shows using the Tuscany
SCA runtime in a J2SE environment to host a web service using the Celtix Web
Service binding to provide the HTTP capabilities.
+</doctype><h2>Tuscany Hello World Celtix Sample</h2>
+<h3>Overview</h3> The Tuscany hello world WS sample shows using the
+Tuscany SCA runtime in a J2SE environment to host a web service using
+the Celtix Web Service binding to provide the HTTP capabilities.
<h3>Setup</h3>
@@ -61,8 +59,10 @@
<p>The sample when run should startup a Tuscany runtime and which will startup
the HelloWorld service. It will then display:<br>
- <code>Hit ENTER to exit</code>
-and then wait for a client to hit it. You can then run the
helloworldwsclient sample in another window to hit the server. When done,
press ENTER to cause the server to shutdown.
+ <code>Hit ENTER to exit</code>and
+then wait for a client to hit it. You can then run the
+helloworldwsclient sample in another window to hit the server. When
+done, press ENTER to cause the server to shutdown.
</p>
@@ -180,5 +180,4 @@
</table>
-</body>
-</html>
+</body></html>
Modified: incubator/tuscany/java/samples/sca/helloworldws/readme.htm
URL:
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldws/readme.htm?rev=406356&r1=406355&r2=406356&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldws/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworldws/readme.htm Sun May 14
08:19:41 2006
@@ -1,18 +1,14 @@
<!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 Service Sample</title><!-- LINK rel="stylesheet" href="ait.css"
type="text/css" --><!-- maven -->
-
-
+<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 Service Sample</title><!-- LINK rel="stylesheet"
href="ait.css" type="text/css" --><!-- maven -->
<style type="text/css" media="all">
@import url("../../../../css/maven-base.css");
@import url("../../../../css/maven-theme.css");
@import url("../../../../css/site.css");
-</style>
-<link rel="stylesheet" href="./css/print.css" type="text/css"
media="print"><!-- end maven --></head>
-<body>
-<h2>Tuscany Hello World WS Sample</h2>
+</style><link rel="stylesheet" href="./css/print.css" type="text/css"
media="print"><!-- end maven --></head>
+<body><h2>Tuscany
+Hello World WS Sample</h2>
<h3>Overview</h3>
<p>The Tuscany hello world ws sample shows using the Tuscany SCA
runtime in a Tomcat environment providing a web
@@ -31,94 +27,23 @@
sample.<br>
<h3>Code Overview</h3>
The source files are physically organized as shown below:<br>
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2"
cellspacing="2">
-<tbody>
-<tr>
-<td>+---main<br>
-¦ +---java<br>
-¦ ¦
-¦ sca.module<br>
-¦ ¦
-¦<br>
-¦ ¦
-+---org<br>
-¦
-¦
-+---apache<br>
-¦
-¦
-+---tuscany <br>
-¦
-¦
-+---samples<br>
-¦
-¦
-+---helloworldws<br>
-¦
-¦
-HelloWorldService.java<br>
-¦
-¦
-HelloWorldServiceComponentImpl.java<br>
-¦ ¦<br>
-¦ +---resources<br>
-¦
-¦ tuscany-model.config<br>
-¦
-¦<br>
-¦
-+---wsdl<br>
-¦
-helloworld.wsdl<br>
-¦<br>
-¦<br>
-+---webapp<br>
- +---WEB-INF<br>
-
-web.xml<br>
-</td>
-</tr>
-</tbody>
-</table>
-<br>
-<br>
-<table style="text-align: left; width: 100%; height: 154px;" border="0"
cellpadding="2" cellspacing="2">
-<tbody>
-<tr>
-<td style="vertical-align: top; height: 62px;">sca.module</td>
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2"
cellspacing="2"><tbody><tr><td>
+<pre>+---main<br> +---resources<br> ¦ ¦ sca.module<br>
¦ ¦<br> ¦ +---wsdl<br> ¦
helloworld.wsdl<br> ¦<br> +---webapp<br> +---WEB-INF<br>
web.xml<br></pre></td></tr></tbody></table>
+<br><br><table style="text-align: left; width: 100%; height: 154px;"
border="0" cellpadding="2" cellspacing="2"><tbody>
+<tr><td style="vertical-align: top; height: 62px;">sca.module</td>
<td style="height: 62px;">Defines the SCA module,
entryPoint and component. Defines for the HelloWorldServiceComponent
component and the Java class that implements the component For the
entryPoint it defines WSDL for the service, the Java interface provided
by the service, and wires the service to
the HelloWorldServiceComponent</td>
-</tr>
-<tr>
-<td style="vertical-align: top; height: 26px;">HelloWorldService.java</td>
-<td style="height: 26px;">Defines the Java interface
-implemented by the component.</td>
-</tr>
-<tr>
-<td style="vertical-align: top;">HelloWorldServiceComponentImpl.java</td>
-<td>Implements the SCA component. Uses the SCA service
-annotation tag on the class to show what SCA interface is being
-implemented. Also uses the SCA Java annotation "Remotable" to
-indicate that a component implemented by this class can be
-referenced out side of the SCA module it resides in.</td>
-</tr>
-<tr>
-<td>tuscany-model.config</td>
-<td>Maps the SCA Entry point WSDL to the physical WSDL file
-location.</td>
-</tr>
-<tr>
+</tr><tr>
<td>helloworld.wsdl</td>
<td>WSDL for the service.</td>
-</tr>
-<tr>
-<td>web.xml</td>
+</tr><tr><td>web.xml</td>
<td>Standard J2EE web application's web.xml</td>
-</tr>
-</tbody>
-</table>
-</body></html>
+</tr></tbody></table>
+<p>You may have noticed that there is no Java source for this
+components implementation. There reason is this sample reuses
+the code from the helloworld sample to implement the service.
+</p></body></html>
\ No newline at end of file
Modified: incubator/tuscany/java/samples/sca/helloworldwsclient/readme.htm
URL:
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldwsclient/readme.htm?rev=406356&r1=406355&r2=406356&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldwsclient/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworldwsclient/readme.htm Sun May 14
08:19:41 2006
@@ -1,265 +1,50 @@
<!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">
+<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">
@import url("../../../../css/maven-base.css");
@import url("../../../../css/maven-theme.css");
@import url("../../../../css/site.css");
- </style>
- <link rel="stylesheet" href="./css/print.css" type="text/css"
media="print"><!-- end maven --></head>
-<body>
-
-
-<h2>Tuscany Hello World WS Client Sample</h2>
-
-
+</style>
+<link rel="stylesheet" href="./css/print.css" type="text/css"
media="print"><!-- end maven --></head>
+<body><h2>Tuscany Hello World WS Client Sample</h2>
<h3>Overview</h3>
-
-
-<p>The Tuscany hello world WS client sample shows using the Tuscany SCA
- runtime in a J2SE environment invoking a web service. </p>
-
-
+<p>The Tuscany hello world WS client sample shows using the
+Tuscany SCA runtime in a J2SE environment invoking a web service. </p>
<h3>Location</h3>
This sample is located in the samples\sca\helloworldwsclient
directory.<br><h3>Setup</h3>
-
-
-The jars for a <a href="../../../docs/sampleSetup.htm" target="_blank">J2SE
setup</a> including those necessary
+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 <span
style="font-weight: bold;">helloworldwsclient-SNAPSHOT.jar</span>.
-
<h3>Running</h3>
-
Using JDK 1.5 java command with the previous mentioned jars run the
class elloworldwsclient.HelloWorldClient
-
<h3>Results</h3>
-
-
<p>The sample when run should simply display to the standard
- output:<br>
-
-
- <code>Hello World</code></p>
-
-
+output:<br> <code>Hello World</code></p>
<h3>Code Overview</h3>
-
-
The source files are physically organized as shown below:<br>
-
-
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2"
cellspacing="2">
-
-
- <tbody>
-
-
- <tr>
-
-
- <td>main<br>
-
-
- +---java<br>
-
-
- ¦ ¦
- sca.module<br>
-
-
- ¦ ¦<br>
-
-
- ¦ +---org<br>
-
-
- ¦
- +---apache<br>
-
-
-
¦
- +---tuscany<br>
-
-
-
¦
- +---samples<br>
-¦
-+---helloworldwsclient<br>
-¦
-HelloWorldClient.java<br>
-¦
-HelloWorldService.java<br>
-¦
-HelloWorldServiceComponentImpl.java<br>
-
-
- ¦<br>
-
-
- +---resources<br>
-
-
- ¦
- tuscany-model.config<br>
-
-
- ¦<br>
-
-
- +---wsdl<br>
-
-
-
- helloworld.wsdl<br>
-
-
- <br>
-
-
- </td>
-
-
- </tr>
-
-
-
- </tbody>
-</table>
-
-
-<br>
-
-
-<br>
-
-
-<table style="text-align: left; width: 100%; height: 154px;" border="0"
cellpadding="2" cellspacing="2">
-
-
- <tbody>
-
-
- <tr>
-
-
- <td style="vertical-align: top; height: 62px;">sca.module</td>
-
-
- <td style="height: 62px;">Defines the SCA module,
- externalService
- and component. Defines for the
- HelloWorldServiceComponent component and the Java class that
- implements the component For the externalService it defines
WSDL for
- the
- service, the Java interface provided by the service.
- The the HelloWorldServiceComponent is via a
- referenced wired to the externalService</td>
-
-
- </tr>
-
-
- <tr>
-
-
- <td style="vertical-align: top;">HelloWorldClient.java</td>
-
-
- <td>Creates a Tuscany runtime and starts it.
- Obtains the module context which was defined by the
- sca.module file. From the module context locates the
- HelloWorldServiceComponent and then calls the
getGreetings
- method to invoke the component.</td>
-
-
- </tr>
-
-
- <tr>
-
-
- <td style="vertical-align: top; height:
26px;">HelloWorldService.java</td>
-
-
- <td style="height: 26px;">Defines the Java interface
- implemented by the component.</td>
-
-
- </tr>
-
-
- <tr>
-
-
- <td style="vertical-align:
top;">HelloWorldServiceComponentImpl.java</td>
-
-
- <td>It does not directly implement the service; instead it
- has an SCA reference that is wired in the sca.module to an
- externalService that will provide the service. The service
providing the implementation is the <a href="../helloworldws/readme.htm"
target="_blank">helloworldws</a> sample.<br>
-
-
- </td>
-
-
- </tr>
-
-
- <tr>
-
-
- <td>tuscany-model.config</td>
-
-
- <td>Maps the SCA Entry point WSDL to the physical WSDL file
- location.</td>
-
-
- </tr>
-
-
- <tr>
-
-
- <td>helloworld.wsdl</td>
-
-
- <td>WSDL for the service.</td>
-
-
- </tr>
-
-
-
- </tbody>
-</table>
-
-
-</body></html>
+<table style="text-align: left; width: 100%;" border="1" cellpadding="2"
cellspacing="2"> <tbody> <tr>
+<td><pre>src<br>+---main<br> +---java<br> ¦ +---helloworld<br>
¦ HelloWorldClient.java<br> ¦
HelloWorldService.java<br> ¦<br> +---resources<br> ¦
logging.properties<br> ¦ sca.module<br> ¦<br>
+---wsdl<br> helloworld.wsdl<br><br><br> <br></pre> </td>
</tr>
+</tbody>
+</table><br>
+<br><table style="text-align: left; width: 100%; height: 154px;" border="0"
cellpadding="2" cellspacing="2"> <tbody> <tr>
+<td style="vertical-align: top; height: 62px;">sca.module</td>
+<td style="height: 62px;">Defines the SCA module,
+externalService and component. Defines for the
+HelloWorldServiceComponent component and the Java class that implements
+the component For the externalService it defines WSDL for the service,
+the Java interface provided by the service.
+The the HelloWorldServiceComponent is via a
+referenced wired to the externalService</td> </tr> <tr>
+<td style="vertical-align: top;">HelloWorldClient.java</td>
+<td>Creates a Tuscany runtime and starts it. Obtains
+the module context which was defined by the sca.module file. From the
+module context locates the HelloWorldService entryPoint and then
+calls the getGreetings method to invoke the web service defined in the
helloword.wsdl.</td>
+</tr> <tr> <td style="vertical-align: top; height:
26px;">HelloWorldService.java</td>
+<td style="height: 26px;">Defines the Java interface
+implemented by the component.</td> </tr> <tr> <td>helloworld.wsdl</td>
+<td>WSDL for the service.</td> </tr> </tbody>
+</table></body></html>
\ No newline at end of file
Modified: incubator/tuscany/java/samples/sca/readme.htm
URL:
http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/readme.htm?rev=406356&r1=406355&r2=406356&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/readme.htm Sun May 14 08:19:41 2006
@@ -100,11 +100,11 @@
</td>
- </tr><tr><td>calculator</td><td>Sample showing Tuscany SCA runtime
using mutliple components.</td></tr><tr><td>customerinfo</td><td>Sample showing
a component exposing a WSDL portType interface and using the
dynamic SDO API</td></tr><tr><td>supplychain</td><td>Sample showing the use of
Tuscany SCA asynchronous API</td></tr><tr><td>helloworldjsonrpc</td><td>Sample
HelloWorld Web application using JSON-RPC</td></tr>
+ </tr><tr><td><a
href="helloworldws-celtix/readme.htm">helloworldws-celtix</a></td><td>Sample
HelloWorld Sample using Celtix.</td></tr><tr><td>calculator</td><td>Sample
showing Tuscany SCA runtime using mutliple
components.</td></tr><tr><td>customerinfo</td><td>Sample showing a
component exposing a WSDL portType interface and using the dynamic
SDO API</td></tr><tr><td>supplychain</td><td>Sample showing the use of Tuscany
SCA asynchronous API</td></tr><tr><td>helloworldjsonrpc</td><td>Sample
HelloWorld Web application using JSON-RPC</td></tr>
</tbody>
</table>
<br>
-</body></html>
+</body></html>
\ No newline at end of file