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 2010/09/16 15:06:32 UTC

svn commit: r997736 - in /tuscany/sca-java-2.x/trunk/samples/getting-started/contributions: helloworld-recursive-ws/ helloworld-recursive-ws/src/ helloworld-recursive-ws/src/main/ helloworld-recursive-ws/src/main/resources/ helloworld-recursive-ws/src/...

Author: antelder
Date: Thu Sep 16 13:06:31 2010
New Revision: 997736

URL: http://svn.apache.org/viewvc?rev=997736&view=rev
Log:
Add a couple of sample contributions that reuse the helloworld sample contribution with and include and adding a ws binding. 

Added:
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/   (with props)
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/   (with props)
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/README
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/pom.xml
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/META-INF/
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/META-INF/sca-contribution.xml
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/helloworld-ws.composite
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/README
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/pom.xml
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/META-INF/
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/META-INF/sca-contribution.xml
    tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/helloworld-recursive.composite

Propchange: tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Sep 16 13:06:31 2010
@@ -0,0 +1,20 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+derby.log
+maven.log
+maven-eclipse.xml
+build.xml
+build-dependency.xml
+velocity.log*
+junit*.properties
+surefire*.properties
+.project
+.classpath
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders

Propchange: tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Thu Sep 16 13:06:31 2010
@@ -0,0 +1,20 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+derby.log
+maven.log
+maven-eclipse.xml
+build.xml
+build-dependency.xml
+velocity.log*
+junit*.properties
+surefire*.properties
+.project
+.classpath
+.settings
+.deployables
+.wtpmodules
+.externalToolBuilders

Added: tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/README?rev=997736&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/README (added)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/README Thu Sep 16 13:06:31 2010
@@ -0,0 +1,153 @@
+Hello World BPEL Sample
+======================================
+This sample demonstrates an SCA service implemented by a BPEL process. 
+
+The README in the <distribution-unpack-dir>/samples directory provides 
+general instructions about building and running samples. (where
+distribution-unpack-dir is the directory in which you unpacked the tuscany
+binary distribution archive). Take a look there first (noting at you read it that this sample
+is not a new style sample). 
+
+If you just want to run it to see what happens open a command prompt, navigate
+to this sample directory, and do 
+
+ant compile run
+
+OR if you don't have ant, on Windows do
+
+mkdir target\classes
+mkdir target\wsdl2java-source
+java -cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator -targetDirectory target/wsdl2java-source -prefix HelloWorld -noContainment -noUnsettable src/main/resources/helloworld.wsdl
+java -cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator -targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl
+unzip ..\..\lib\ode-dao-jpa-ojpa-derby-1.1.zip -d target\database
+javac -d target\classes -cp target\classes;..\..\lib\tuscany-sca-manifest.jar -sourcepath src\main\java;target\wsdl2java-source -target 1.5 -g -source 1.5 src\main\java\helloworld\BPELClient.java
+copy src\main\resources\* target\classes
+java -cp ..\..\lib\tuscany-sca-manifest.jar;target\classes;target\database helloworld.BPELClient
+
+and on *nix do
+
+mkdir target/classes
+mkdir target/wsdl2java-source
+java -cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator -targetDirectory target/wsdl2java-source -prefix HelloWorld -noContainment -noUnsettable src/main/resources/helloworld.wsdl
+java -cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator -targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl
+unzip ../../lib/ode-dao-jpa-ojpa-derby-1.1.zip -d target/database
+javac -d target/classes -cp target/classes;../../lib/tuscany-sca-manifest.jar -sourcepath src/main/java;target/wsdl2java-source -target 1.5 -g -source 1.5 src/main/java/helloworld/BPELClient.java
+cp src/main/resources/* target/classes
+java -cp ../../lib/tuscany-sca-manifest.jar:target/classes:target/database helloworld.BPELClient
+
+The sample will start an embedded BPEL engine, deploy a process and invoke it.
+
+Sample Overview
+---------------
+The sample provides a single component that is wired to a service with a 
+web service binding.
+
+helloworld-bpel/
+  src/
+    main/
+      java/
+        helloworld/
+          BPELClient.java          	  - client application for  
+                                            BEPELHelloWorldComponent
+
+      resources/
+          deploy.xml			  - ODE deployment descriptor
+          helloworld.bpel		  - helloworld bpel process
+          helloworld.componentType	  - helloworld bpel service description
+          helloworld.composite            - the SCA assembly for this sample
+          helloworld.wsdl                 - the service description that describes
+                                            the bpel process
+          log4j.properties                - logging configuration
+          
+    test/
+      java/
+        helloworld/
+          BPELHelloWorldTestCase.java     - JUnit test case 
+  helloworld-bpel.png                     - a pictorial representation of the 
+                                            sample .composite file
+  build.xml                               - the Ant build file
+  pom.xml                                 - the Maven build file        
+
+Building And Running The Sample Using Ant
+-----------------------------------------
+
+With the binary distribution the sample can be built and run using Ant as 
+follows
+
+cd helloworld-bpel
+ant compile
+ant run
+
+     
+You should see the following output from the run target.     
+
+run:
+     [java] Starting BPELHelloWorldComponent
+     [java] >>> Deploying : D:\temp\SCA1.1-RC1\tuscany-sca-1.1-incubating\samples\helloworld-bpel\target\classes
+     [java] ::arg:::::: <?xml version="1.0" encoding="UTF-8"?>
+     [java] <hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"><message xmlns="http://tuscany.apache.org/implementation/bpel/exampl
+e/helloworld.wsdl">Hello</message></hello>
+     [java] ::message:: <?xml version="1.0" encoding="UTF-8"?>
+     [java] <message><TestPart><hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"><message xmlns="http://tuscany.apache.org/impleme
+ntation/bpel/example/helloworld.wsdl">Hello</message></hello></TestPart></message>
+     [java] Status: RESPONSE
+     [java] Response: <?xml version="1.0" encoding="UTF-8"?>
+     [java] <message><TestPart><hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl">Hello World</hello></TestPart></message>
+     [java] Hello World
+     [java] Stopping BPELHelloWorldComponent
+     [java] Stopped !!!
+
+BUILD SUCCESSFUL
+Total time: 36 seconds     
+
+Building And Running The Sample Using Maven 
+-------------------------------------------
+With either the binary or source distributions the sample can be built and run 
+using Maven as follows. When using Maven, a simple test is present that exercise
+the same logic as the client to invoke the BPEl process.
+
+cd helloworld-bpel
+mvn
+
+You should see the following output from the test phase.
+
+-
+
+-------------------------------------------------------
+ T E S T S
+-------------------------------------------------------
+Running helloworld.BPELHelloWorldTestCase
+Starting BPELHelloWorldComponent
+>>> Deploying : D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\classes
+::arg:::::: <?xml version="1.0" encoding="UTF-8"?>
+<hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"><message xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld
+.wsdl">Hello</message></hello>
+::message:: <?xml version="1.0" encoding="UTF-8"?>
+<message><TestPart><hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl"><message xmlns="http://tuscany.apache.org/implementation/bpel
+/example/helloworld.wsdl">Hello</message></hello></TestPart></message>
+Status: RESPONSE
+Response: <?xml version="1.0" encoding="UTF-8"?>
+<message><TestPart><hello xmlns="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl">Hello World</hello></TestPart></message>
+Stopping BPELHelloWorldComponent
+Stopped !!!
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 18.656 sec
+
+Results :
+
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
+
+[INFO] [jar:jar]
+[INFO] Building jar: D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\sample-helloworld-bpel.jar
+[INFO] [install:install]
+[INFO] Installing D:\dev\Opensource\Apache\Tuscany\source\java-sca-1.1\samples\helloworld-bpel\target\sample-helloworld-bpel.jar to C:\Documents and Settings\lresend
+e\.m2\repository\org\apache\tuscany\sca\sample-helloworld-bpel\1.1-incubating-SNAPSHOT\sample-helloworld-bpel-1.1-incubating-SNAPSHOT.jar
+[INFO] ------------------------------------------------------------------------
+[INFO] BUILD SUCCESSFUL
+[INFO] ------------------------------------------------------------------------
+[INFO] Total time: 53 seconds
+[INFO] Finished at: Sun Jan 13 09:54:39 PST 2008
+[INFO] Final Memory: 24M/43M
+[INFO] ------------------------------------------------------------------------
+
+
+This shows that the Junit test cases have run successfully. 

Added: tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/pom.xml?rev=997736&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/pom.xml (added)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/pom.xml Thu Sep 16 13:06:31 2010
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you 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.
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-samples</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <packaging>zip</packaging>
+    <artifactId>sample-helloworld-recursive-ws</artifactId>
+    <name>Apache Tuscany SCA Sample Helloworld using recursive composition and a Web Service</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-sca-api</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>sample-helloworld</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.8.1</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+       <finalName>${artifactId}</finalName>
+       <plugins>
+
+         <!-- plugin to support zip packaging for SCA contributions -->
+         <plugin>
+            <groupId>org.apache.tuscany.maven.plugins</groupId>
+            <artifactId>maven-zip-plugin</artifactId>
+            <version>alpha2</version>
+            <extensions>true</extensions>
+         </plugin>
+
+         <!-- plugin to support using mvn tuscany:run to run this contribution -->
+         <plugin>
+             <groupId>org.apache.tuscany.maven.plugins</groupId>
+             <artifactId>maven-tuscany-plugin</artifactId>
+             <version>2.0-SNAPSHOT</version>
+             <configuration>
+                <contributions>
+                   <!-- add the dependee contribution that this contribution uses -->
+                   <param>..\helloworld-recursive\target\sample-helloworld-recursive.jar</param>
+                   <param>..\helloworld\target\sample-helloworld.jar</param>
+                </contributions>
+             </configuration>
+         </plugin>
+
+       </plugins>
+    </build>
+</project>

Added: tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/META-INF/sca-contribution.xml?rev=997736&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/META-INF/sca-contribution.xml (added)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/META-INF/sca-contribution.xml Thu Sep 16 13:06:31 2010
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you 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.    
+-->
+<contribution xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+              xmlns:sample="http://sample">
+
+   <deployable composite="sample:helloworld-ws"/>
+
+   <import namespace="http://sample"/> 
+   <import.java package="sample"/> 
+
+</contribution>

Added: tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/helloworld-ws.composite
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/helloworld-ws.composite?rev=997736&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/helloworld-ws.composite (added)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive-ws/src/main/resources/helloworld-ws.composite Thu Sep 16 13:06:31 2010
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you 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.    
+-->
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+      xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
+      targetNamespace="http://sample"
+      xmlns:hns="http://sample"
+      name="helloworld-ws">
+    
+    <component name="HelloworldWSComponent">
+        <implementation.composite name="hns:helloworld-recursive"/>
+        <service name="MyHelloworld">
+           <binding.ws />
+        </service>
+    </component>
+
+</composite>

Added: tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/README?rev=997736&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/README (added)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/README Thu Sep 16 13:06:31 2010
@@ -0,0 +1,7 @@
+The README in the <distribution-unpack-dir>/samples directory provides 
+general instructions about building and running samples. (where
+distribution-unpack-dir is the directory in which you unpacked the tuscany
+binary distribution archive). Take a look there first (noting at you read it that this sample
+is not a new style sample). 
+
+TODO - finish this
\ No newline at end of file

Added: tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/pom.xml?rev=997736&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/pom.xml (added)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/pom.xml Thu Sep 16 13:06:31 2010
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you 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.    
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-samples</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <packaging>zip</packaging>
+    <artifactId>sample-helloworld-recursive</artifactId>
+    <name>Apache Tuscany SCA Sample Helloworld using recursive composition</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-sca-api</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.8.1</version>
+            <scope>test</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+       <finalName>${artifactId}</finalName>
+
+       <plugins>
+
+         <!-- plugin to support zip packaging for SCA contributions -->
+         <plugin>
+            <groupId>org.apache.tuscany.maven.plugins</groupId>
+            <artifactId>maven-zip-plugin</artifactId>
+            <version>alpha2</version>
+            <extensions>true</extensions>
+         </plugin>
+
+         <!-- plugin to support using mvn tuscany:run to run this contribution -->
+         <plugin>
+             <groupId>org.apache.tuscany.maven.plugins</groupId>
+             <artifactId>maven-tuscany-plugin</artifactId>
+             <version>2.0-SNAPSHOT</version>
+             <configuration>
+                <contributions>
+                   <!-- add the dependee contribution that this contribution uses -->
+                   <param>..\helloworld\target\sample-helloworld.jar</param>
+                </contributions>
+             </configuration>
+         </plugin>
+
+       </plugins>
+    </build>
+</project>

Added: tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/META-INF/sca-contribution.xml
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/META-INF/sca-contribution.xml?rev=997736&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/META-INF/sca-contribution.xml (added)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/META-INF/sca-contribution.xml Thu Sep 16 13:06:31 2010
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.    
+-->
+<contribution xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+              xmlns:sample="http://sample">
+   <deployable composite="sample:helloworld-recursive"/>
+   <import namespace="http://sample"/> 
+   <export namespace="http://sample"/> 
+</contribution>
+

Added: tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/helloworld-recursive.composite
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/helloworld-recursive.composite?rev=997736&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/helloworld-recursive.composite (added)
+++ tuscany/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-recursive/src/main/resources/helloworld-recursive.composite Thu Sep 16 13:06:31 2010
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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.    
+-->
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+           xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
+           xmlns:inc="http://sample"
+           targetNamespace="http://sample"
+           name="helloworld-recursive">
+
+    <include name="inc:helloworld" />
+
+    <service name="MyHelloworld" promote="HelloworldComponent/Helloworld" />
+
+</composite>