You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by dk...@apache.org on 2006/05/15 21:47:55 UTC

svn commit: r406728 - in /incubator/tuscany/java/samples/sca: helloworld-jms/client/ helloworld-jms/server/ helloworld-jms/server/src/main/java/helloworld/ helloworld-jms/server/src/main/resources/ helloworldws-celtix/ helloworldws-celtix/src/main/java...

Author: dkulp
Date: Mon May 15 12:47:52 2006
New Revision: 406728

URL: http://svn.apache.org/viewcvs?rev=406728&view=rev
Log:
TUSCANY-354
Document how to run the JMS samples
Copy the HelloWorld stuff into the services so the sca.module in the helloworld.jar won't conflict.


Added:
    incubator/tuscany/java/samples/sca/helloworld-jms/server/activemq.xml   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldImpl.java   (with props)
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldService.java   (with props)
    incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldImpl.java   (with props)
    incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldService.java   (with props)
Modified:
    incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm
    incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml
    incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm
    incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module
    incubator/tuscany/java/samples/sca/helloworldws-celtix/pom.xml
    incubator/tuscany/java/samples/sca/helloworldws-celtix/readme.htm

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=406728&r1=406727&r2=406728&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/client/readme.htm Mon May 15 12:47:52 2006
@@ -1,269 +1,96 @@
 <!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">
-@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 -->
+    <!-- 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>
-
-
-<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>
-
-
-<h3>Setup</h3>
-
-
-The jars for a <a href="../../../sampleSetup.htm" target="_blank">J2SE setup</a> &nbsp;including those necessary&nbsp;
-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 org.apache.tuscany.samples.helloworldwsclient.HelloWorldClient
-
-<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:<br>
-
-
-<table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
-
-
-    <tbody>
-
-
-        <tr>
-
-
-            <td>main<br>
-
-
-                +---java<br>
-
-
-                &brvbar;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;
-                sca.module<br>
-
-
-                &brvbar;&nbsp;&nbsp; &brvbar;<br>
-
-
-                &brvbar;&nbsp;&nbsp; +---org<br>
-
-
-                &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                +---apache<br>
-
-
-                &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                +---tuscany<br>
-
-
-                &brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                +---samples<br>
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-+---helloworldwsclient<br>
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-HelloWorldClient.java<br>
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-HelloWorldService.java<br>
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-HelloWorldServiceComponentImpl.java<br>
-
-
-                &brvbar;<br>
-
-
-                +---resources<br>
-
-
-                &nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;
-                tuscany-model.config<br>
-
-
-                &nbsp;&nbsp;&nbsp; &brvbar;<br>
-
-
-                &nbsp;&nbsp;&nbsp; +---wsdl<br>
-
-
-                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                helloworld.wsdl<br>
-
-
-                <br>
-
-
+    <body>
+    <h2>Tuscany Hello World JMS Client Sample</h2> <h3>Overview</h3>
+    <p>
+    The Tuscany Hello World JMS client sample shows using the Tuscany SCA runtime in 
+    a J2SE environment invoking a service using XML over JMS. 
+    </p>
+    <h3>Location</h3> This sample is located &nbsp;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> &nbsp;including those necessary&nbsp; for web services are required 
+    including the sample's own 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&nbsp;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>
+    <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:<br>
+    <table style="text-align: left; width: 100%;" border="1" cellpadding="2" cellspacing="2">
+        <tbody>
+        <tr>
+            <td>
+   <pre>
+   src
+   +---main
+   +---java
+   &brvbar;   +---helloworld
+   &brvbar;           HelloWorldClient.java
+   &brvbar;           HelloWorldService.java
+   &brvbar; 
+   +---resources
+   &brvbar;   logging.properties
+   &brvbar;   sca.module
+   &brvbar;
+   +---wsdl
+           helloworld.wsdl 
+   </pre>
             </td>
-
-
         </tr>
-
-
-    
-  </tbody>
-</table>
-
-
-<br>
-
-
-<br>
-
-
-<table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2">
-
-
-    <tbody>
-
-
+        </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&nbsp;the&nbsp;HelloWorldServiceComponent is via a
-                referenced wired to the externalService</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&nbsp;the&nbsp;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.
-                &nbsp;Obtains the module context which was defined by the
-                sca.module file. From the module context locates the
-                HelloWorldServiceComponent and then calls&nbsp; the getGreetings
-                method to invoke the component.</td>
-
-
+            <td>Creates a Tuscany runtime and starts it. &nbsp;Obtains the module context 
+            which was defined by the sca.module file. From the module context locates the 
+            HelloWorldService entryPoint and then calls&nbsp; 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 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>
-
-
+            <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>
-
-
+            <td>WSDL for the service.  Not that the WSDL defines a XML binding using a JMS transport intead of the normal SOAP/HTTP</td>
         </tr>
-
-
-    
-  </tbody>
-</table>
-
-
-</body>
+        </tbody>
+    </table>
+    </body>
 </html>

Added: incubator/tuscany/java/samples/sca/helloworld-jms/server/activemq.xml
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/activemq.xml?rev=406728&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/activemq.xml (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/activemq.xml Mon May 15 12:47:52 2006
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE beans PUBLIC  "-//ACTIVEMQ//DTD//EN" "http://activemq.org/dtd/activemq.dtd">
+<beans>
+
+  <!-- ==================================================================== -->
+  <!-- ActiveMQ Broker Configuration -->
+  <!-- ==================================================================== -->
+  <broker>
+    <connector>
+      <tcpServerTransport uri="tcp://localhost:61616" backlog="1000" useAsyncSend="true" maxOutstandingMessages="50"/>
+    </connector>
+
+    <!-- to enable Stomp support uncomment this
+    <connector>
+      <serverTransport uri="stomp://localhost:61626"/>
+    </connector>
+    -->
+
+    <persistence>
+      <cachePersistence>
+        <journalPersistence directory="../var/journal">
+          <jdbcPersistence dataSourceRef="derby-ds"/>
+
+          <!-- Choose one of the following three configurationss to work with mysql-ds-->
+          <!--
+          <jdbcPersistence dataSourceRef="mysql-ds"
+                         adapterClass="org.activemq.store.jdbc.adapter.BytesJDBCAdaptor"/>
+          <jdbcPersistence dataSourceRef="mysql-ds"
+                         adapterClass="org.activemq.store.jdbc.adapter.BlobJDBCAdaptor"/>
+          <jdbcPersistence dataSourceRef="mysql-ds"
+                         adapterClass="org.activemq.store.jdbc.adapter.StreamJDBCAdaptor"/>
+          -->
+        </journalPersistence>
+      </cachePersistence>
+    </persistence>
+  </broker>
+
+  <!-- ==================================================================== -->
+  <!-- JDBC DataSource Configurations -->
+  <!-- ==================================================================== -->
+
+  <!-- The Derby Datasource that will be used by the Broker -->
+  <bean id="derby-ds" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
+    <property name="driverClassName">
+      <value>org.apache.derby.jdbc.EmbeddedDriver</value>
+    </property>
+    <property name="url">
+      <!-- Use a URL like 'jdbc:hsqldb:hsql://localhost:9001' if you want to connect to a remote hsqldb -->
+      <value>jdbc:derby:derbydb;create=true</value>
+    </property>
+    <property name="username">
+      <value></value>
+    </property>
+    <property name="password">
+      <value></value>
+    </property>
+    <property name="poolPreparedStatements">
+      <value>true</value>
+    </property>
+  </bean>
+
+  <!-- The MYSQL Datasource that will be used by the Broker -->
+  <bean id="mysql-ds"
+        class="org.apache.commons.dbcp.BasicDataSource"
+        destroy-method="close">
+    <property name="driverClassName">
+      <value>com.mysql.jdbc.Driver</value>
+    </property>
+    <property name="url">
+      <value>jdbc:mysql://localhost/activemq</value>
+    </property>
+    <property name="username">
+      <value>myname</value>
+    </property>
+    <property name="password">
+      <value>mypassword</value>
+    </property>
+    <property name="poolPreparedStatements">
+      <value>true</value>
+    </property>
+  </bean>
+
+
+</beans>
+

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/activemq.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/activemq.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml?rev=406728&r1=406727&r2=406728&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml (original)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/pom.xml Mon May 15 12:47:52 2006
@@ -29,12 +29,6 @@
 
     <dependencies>
         <dependency>
-            <groupId>org.apache.tuscany.samples.sca</groupId>
-            <artifactId>sample-helloworld</artifactId>
-            <version>${pom.version}</version>
-            <scope>compile</scope>
-        </dependency>
-        <dependency>
             <groupId>org.apache.tuscany</groupId>
             <artifactId>tuscany-core</artifactId>
             <version>${pom.version}</version>

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=406728&r1=406727&r2=406728&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/readme.htm Mon May 15 12:47:52 2006
@@ -1,187 +1,97 @@
-
-
-
-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">
-@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 -->
+    <!-- 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 JMS 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 JMS Service Sample</h2>
+    <h3>Overview</h3>
+    <p>
+    The Tuscany hello world jms sample shows using the Tuscany SCA runtime using the Celtix/J2SE environment to &nbsp;provide&nbsp;a web service using
+    XML over JMS as well as SOAP over HTTP.
+    </p>
+    <h3>Location</h3> This sample is located &nbsp;in the samples\sca\helloworld-jms\server 
+    directory.<br>
+    <h3>Setup</h3> 
+    The jars for a <a href="../../../../docs/sampleSetup.htm" target="_blank">J2SE 
+    setup</a> &nbsp;including those necessary&nbsp; for web services are required 
+    including the sample's own jar 
+    <span style="font-weight: bold;">
+    sample-helloworldjms-service-incubating-M1.jar
+    </span>
+    . <h3>Running</h3> Using JDK 1.5 java command with the previous mentioned jars, including the tuscany-celtix.jar, start the JMS broker and then
+    run the class&nbsp;helloworld.HelloWorldServer.
+    <pre>
+        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>
+    
 
-
-<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.
-
-
-<h3>Setup</h3>
-
-
-The jars for a <a href="../../../sampleSetup.htm" target="_blank">J2SE setup</a> &nbsp;including those necessary&nbsp;
-for web services are required including the sample's own jar <span style="font-weight: bold;">helloworldws-celtix-SNAPSHOT.jar</span>.
-
-<h3>Running</h3>
-
-Using JDK 1.5 java command with the previous mentioned jars run the
-class helloworld.HelloWorldServer
-
-<h3>Results</h3>
-
-
-<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.
-</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>
-
-
-                +---src/java/main<br>
-
-
-
-                &brvbar;&nbsp;&nbsp; &brvbar;<br>
-&brvbar;&nbsp;&nbsp;&nbsp;+---helloworld<br>
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HelloWorldServer.java<br>
-
-
-                &brvbar;<br>
-
-
-                +---resources<br>
-
-
-                &nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;sca.module<br>
-
-
-                &nbsp;&nbsp;&nbsp; &brvbar;<br>
-
-
-                &nbsp;&nbsp;&nbsp; +---wsdl<br>
-
-
-                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                helloworld.wsdl<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>
+                <pre>
+   +---main
+   +---java
+   &brvbar;   +---helloworld
+   &brvbar;           HelloWorldServer.java
+   &brvbar;           HelloWorldImpl.java
+   &brvbar;           HelloWorldService.java
+   +---resources
+     &brvbar;   sca.module
+     +---wsdl
+            helloworld.wsdl 
+   activemq.xml
+                </pre>
             </td>
-
-
         </tr>
-
-
-    
-  </tbody>
-</table>
-
-
-<br>
-
-
-
-
-
-<table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2">
-
-
-    <tbody>
-
-
+        </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&nbsp;the&nbsp;HelloWorldServiceComponent is via a
-                referenced wired to the externalService</td>
-
-
+            <td>HelloWorldServer.java</td>
+            <td>Main method to startup the Tuscany runtime which will startup the services defined in sca.module</td>
         </tr>
-
-
         <tr>
-
-
-            <td style="vertical-align: top;">HelloWorldServer.java</td>
-
-
-            <td>Creates a Tuscany runtime and starts it.
-                </td>
-
-
+            <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;">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; 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&nbsp;HelloWorldServiceComponent</td>
         </tr>
-
-
-        
         <tr>
             <td>helloworld.wsdl</td>
             <td>WSDL for the service.</td>
         </tr>
-
-
-    
-  </tbody>
-</table>
-
-
-</body>
-</html>
+        <tr>
+            <td>activemq.xml</td>
+            <td>Configuration file for ActiveMQ to setup the broker</td>
+        </tr>
+        </tbody>
+    </table>
+    </body>
+</html>
\ No newline at end of file

Added: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldImpl.java?rev=406728&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldImpl.java (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldImpl.java Mon May 15 12:47:52 2006
@@ -0,0 +1,31 @@
+/**
+ *
+ *  Copyright 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.
+ */
+package helloworld;
+
+import org.osoa.sca.annotations.Service;
+
+/**
+ * This class implements the HelloWorld service.
+ */
+@Service(HelloWorldService.class)
+public class HelloWorldImpl implements HelloWorldService {
+
+    public String getGreetings(String name) {
+        return "Hello " + name;
+    }
+
+}

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldService.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldService.java?rev=406728&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldService.java (added)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldService.java Mon May 15 12:47:52 2006
@@ -0,0 +1,26 @@
+/**
+ *
+ *  Copyright 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.
+ */
+package helloworld;
+
+/**
+ * This is the business interface of the HelloWorld greetings service.
+ */
+public interface HelloWorldService {
+
+    public String getGreetings(String name);
+
+}

Propchange: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/java/helloworld/HelloWorldService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module?rev=406728&r1=406727&r2=406728&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module (original)
+++ incubator/tuscany/java/samples/sca/helloworld-jms/server/src/main/resources/sca.module Mon May 15 12:47:52 2006
@@ -16,7 +16,7 @@
   limitations under the License.
  -->
 <module xmlns="http://www.osoa.org/xmlns/sca/0.9" xmlns:v="http://www.osoa.org/xmlns/sca/values/0.9"
-        name="helloworld">
+        name="helloworldJMSServer">
 
     <import.sdo wsdlLocation="wsdl/helloworld.wsdl"/>
     <import.wsdl location="wsdl/helloworld.wsdl" namespace="http://helloworld"/>

Modified: incubator/tuscany/java/samples/sca/helloworldws-celtix/pom.xml
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldws-celtix/pom.xml?rev=406728&r1=406727&r2=406728&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldws-celtix/pom.xml (original)
+++ incubator/tuscany/java/samples/sca/helloworldws-celtix/pom.xml Mon May 15 12:47:52 2006
@@ -30,12 +30,6 @@
 
     <dependencies>
         <dependency>
-            <groupId>org.apache.tuscany.samples.sca</groupId>
-            <artifactId>sample-helloworld</artifactId>
-            <version>${pom.version}</version>
-            <scope>compile</scope>
-        </dependency>
-        <dependency>
             <groupId>org.apache.tuscany</groupId>
             <artifactId>tuscany-core</artifactId>
             <version>${pom.version}</version>

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=406728&r1=406727&r2=406728&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldws-celtix/readme.htm (original)
+++ incubator/tuscany/java/samples/sca/helloworldws-celtix/readme.htm Mon May 15 12:47:52 2006
@@ -1,183 +1,89 @@
 <!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">
-@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><doctype transitional//en="" 4.01="" html="" -//w3c//dtd="" public="">
-
-
-<!--
-  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.
- -->
-
+<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 -->
+    <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> <h3>Overview</h3>
+    <p>
+    The Tuscany hello world ws sample shows using the Tuscany SCA runtime as a standalone web service.
+    </p>
+    <h3>Location</h3> This sample is located &nbsp;in the samples\sca\helloworldws-celtix 
+    directory.<br>
+    <h3>Setup</h3> 
+    The jars for a <a href="../../../../docs/sampleSetup.htm" target="_blank">J2SE 
+    setup</a> &nbsp;including those necessary&nbsp; for web services are required 
+    including the sample's own jar 
+    <span style="font-weight: bold;">
+    sample-helloworldws-celtix-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&nbsp;helloworld.HelloWorldServer.  
+    <pre>
+        java -cp ../../../../lib/tuscany-runtime-incubating-M1.jar:../../../../lib/celtix/tuscany-celtix-incubating-M1.jar:target/sample-helloworldws-celtix-incubating-M1.jar helloworld.HelloWorldServer
+    </pre>
     
-  
-
-
-    
-  
-
-    
-
-  
-<!-- LINK rel="stylesheet" href="ait.css" type="text/css" --><!-- maven -->
-  
-<!-- end maven -->
-
-
-
-</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>
-
-
-The jars for a <a href="../../../docs/sampleSetup.htm" target="_blank">J2SE setup</a> &nbsp;including those necessary&nbsp;
-for web services are required including the sample's own jar <span style="font-weight: bold;">helloworldws-celtix-SNAPSHOT.jar</span>.
-
-<h3>Running</h3>
-
-Using JDK 1.5 java command with the previous mentioned jars run the
-class helloworld.HelloWorldServer
-
-<h3>Results</h3>
-
-
-<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.
-</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>
-
-
-                +---src/java/main<br>
-
-
-
-                &brvbar;&nbsp;&nbsp; &brvbar;<br>
-&brvbar;&nbsp;&nbsp;&nbsp;+---helloworld<br>
-&brvbar;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HelloWorldServer.java<br>
-
-
-                &brvbar;<br>
-
-
-                +---resources<br>
-
-
-                &nbsp;&nbsp;&nbsp; &brvbar;&nbsp;&nbsp;sca.module<br>
-
-
-                &nbsp;&nbsp;&nbsp; &brvbar;<br>
-
-
-                &nbsp;&nbsp;&nbsp; +---wsdl<br>
-
-
-                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-                helloworld.wsdl<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>
+                <pre>
+   +---main
+   +---java
+   &brvbar;   +---helloworld
+   &brvbar;           HelloWorldServer.java
+   &brvbar;           HelloWorldImpl.java
+   &brvbar;           HelloWorldService.java
+   +---resources
+     &brvbar;   sca.module
+     +---wsdl
+            helloworld.wsdl 
+                </pre>
             </td>
-
-
         </tr>
-
-
-    
-  </tbody>
-</table>
-
-
-<br>
-
-
-
-
-
-<table style="text-align: left; width: 100%; height: 154px;" border="0" cellpadding="2" cellspacing="2">
-
-
-    <tbody>
-
-
+        </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&nbsp;the&nbsp;HelloWorldServiceComponent is via a
-                referenced wired to the externalService</td>
-
-
+            <td>HelloWorldServer.java</td>
+            <td>Main method to startup the Tuscany runtime which will startup the services defined in sca.module</td>
         </tr>
-
-
         <tr>
-
-
-            <td style="vertical-align: top;">HelloWorldServer.java</td>
-
-
-            <td>Creates a Tuscany runtime and starts it.
-                </td>
-
-
+            <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;">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; 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&nbsp;HelloWorldServiceComponent</td>
         </tr>
-
-
-        
         <tr>
             <td>helloworld.wsdl</td>
             <td>WSDL for the service.</td>
         </tr>
-
-
-    
-  </tbody>
-</table>
-
-
-</body></html>
+        </tbody>
+    </table>
+    </body>
+</html>
\ No newline at end of file

Added: incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldImpl.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldImpl.java?rev=406728&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldImpl.java (added)
+++ incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldImpl.java Mon May 15 12:47:52 2006
@@ -0,0 +1,31 @@
+/**
+ *
+ *  Copyright 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.
+ */
+package helloworld;
+
+import org.osoa.sca.annotations.Service;
+
+/**
+ * This class implements the HelloWorld service.
+ */
+@Service(HelloWorldService.class)
+public class HelloWorldImpl implements HelloWorldService {
+
+    public String getGreetings(String name) {
+        return "Hello " + name;
+    }
+
+}

Propchange: incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldService.java
URL: http://svn.apache.org/viewcvs/incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldService.java?rev=406728&view=auto
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldService.java (added)
+++ incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldService.java Mon May 15 12:47:52 2006
@@ -0,0 +1,26 @@
+/**
+ *
+ *  Copyright 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.
+ */
+package helloworld;
+
+/**
+ * This is the business interface of the HelloWorld greetings service.
+ */
+public interface HelloWorldService {
+
+    public String getGreetings(String name);
+
+}

Propchange: incubator/tuscany/java/samples/sca/helloworldws-celtix/src/main/java/helloworld/HelloWorldService.java
------------------------------------------------------------------------------
    svn:eol-style = native