From 5482fcc2901f36d944f026f02ba2a4237c7a103c Mon Sep 17 00:00:00 2001 From: kelvingoodson Date: Sat, 25 Sep 2010 16:24:38 +0000 Subject: TUSCANY-3677 getting-started clearup git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1001250 13f79535-47bb-0310-9956-ffa450edef68 --- .../contributions/helloworld-bpel/README | 153 ------------------ .../contributions/helloworld-bpel/build.xml | 95 ----------- .../helloworld-bpel/helloworld-bpel.png | Bin 8897 -> 0 bytes .../helloworld-bpel/helloworld-bpel.svg | 179 --------------------- .../contributions/helloworld-bpel/pom.xml | 76 --------- .../src/main/java/helloworld/Hello.java | 29 ---- .../main/resources/META-INF/sca-contribution.xml | 23 --- .../src/main/resources/helloworld.bpel | 80 --------- .../src/main/resources/helloworld.composite | 29 ---- .../src/main/resources/helloworld.wsdl | 94 ----------- .../src/main/resources/log4j.properties | 35 ---- .../implementation-bpel/helloworld-bpel/README | 153 ++++++++++++++++++ .../implementation-bpel/helloworld-bpel/build.xml | 95 +++++++++++ .../helloworld-bpel/helloworld-bpel.png | Bin 0 -> 8897 bytes .../helloworld-bpel/helloworld-bpel.svg | 179 +++++++++++++++++++++ .../implementation-bpel/helloworld-bpel/pom.xml | 76 +++++++++ .../src/main/java/helloworld/Hello.java | 29 ++++ .../main/resources/META-INF/sca-contribution.xml | 23 +++ .../src/main/resources/helloworld.bpel | 80 +++++++++ .../src/main/resources/helloworld.composite | 29 ++++ .../src/main/resources/helloworld.wsdl | 94 +++++++++++ .../src/main/resources/log4j.properties | 35 ++++ 22 files changed, 793 insertions(+), 793 deletions(-) delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/README delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/build.xml delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/helloworld-bpel.png delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/helloworld-bpel.svg delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/pom.xml delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/java/helloworld/Hello.java delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.bpel delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.composite delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.wsdl delete mode 100644 sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/log4j.properties create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/README create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/build.xml create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/helloworld-bpel.png create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/helloworld-bpel.svg create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/pom.xml create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/java/helloworld/Hello.java create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.bpel create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.composite create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.wsdl create mode 100644 sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/log4j.properties (limited to 'sca-java-2.x') diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/README b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/README deleted file mode 100644 index 533743ebf6..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/README +++ /dev/null @@ -1,153 +0,0 @@ -Hello World BPEL Sample -====================================== -This sample demonstrates an SCA service implemented by a BPEL process. - -The README in the /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:::::: - [java] Hello - [java] ::message:: - [java] Hello - [java] Status: RESPONSE - [java] Response: - [java] Hello World - [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:::::: -Hello -::message:: -Hello -Status: RESPONSE -Response: -Hello World -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. diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/build.xml b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/build.xml deleted file mode 100644 index 008953e63b..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/build.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/helloworld-bpel.png b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/helloworld-bpel.png deleted file mode 100644 index 5f53a3c5d1..0000000000 Binary files a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/helloworld-bpel.png and /dev/null differ diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/helloworld-bpel.svg b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/helloworld-bpel.svg deleted file mode 100644 index 5a98f1a07c..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/helloworld-bpel.svg +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - helloworldws - - HelloWorldServiceComponent - - HelloWorldWebService - - implementation.bpel helloworld.bpel - - diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/pom.xml b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/pom.xml deleted file mode 100644 index 3f4be82f71..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/pom.xml +++ /dev/null @@ -1,76 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-samples - 2.0-SNAPSHOT - ../pom.xml - - - zip - sample-helloworld-bpel - Apache Tuscany SCA Sample HelloWorld BPEL - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - provided - - - junit - junit - 4.8.1 - test - - - - - ${artifactId} - - - - - org.apache.tuscany.maven.plugins - maven-zip-plugin - alpha2 - true - - - - - org.apache.tuscany.maven.plugins - maven-tuscany-plugin - 2.0-SNAPSHOT - - - org.apache.tuscany.sca.shades - tuscany-bpel - 2.0-SNAPSHOT - - - - - - - diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/java/helloworld/Hello.java b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/java/helloworld/Hello.java deleted file mode 100644 index dbd3854d7c..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/java/helloworld/Hello.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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. - */ - -package helloworld; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Hello { - - String hello(String name); - -} diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 4a56523adb..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.bpel b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.bpel deleted file mode 100644 index d58768adfa..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.bpel +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - concat($helloMessage.TestPart/test:arg0/text(), ' World') - - - - - - - - - Dummy - - - - - - - - $helloMessageResponse.TestResponse/test:messageResponse - - - - - diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.composite b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.composite deleted file mode 100644 index 08350e8417..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.wsdl b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.wsdl deleted file mode 100644 index cf966264ef..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/helloworld.wsdl +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/log4j.properties b/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/log4j.properties deleted file mode 100644 index 8649a71550..0000000000 --- a/sca-java-2.x/trunk/samples/getting-started/contributions/helloworld-bpel/src/main/resources/log4j.properties +++ /dev/null @@ -1,35 +0,0 @@ -# -# 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. -# - -# Set root logger level to WARN and its only appender to CONSOLE -log4j.rootLogger=OFF, CONSOLE - -# log4j properties to work with commandline tools. -log4j.category.org.mortbay=OFF -log4j.category.org.hibernate.type=OFF -log4j.category.org.objectweb=OFF -log4j.category.org.apache.ode.sql=OFF -log4j.category.org.apache.ode.axis2=OFF -log4j.category.org.apache.ode.bpel.engine=OFF -log4j.category.org.apache.ode.daohib.bpel.CorrelatorDaoImpl=OFF -log4j.category.org.apache.ode.bpel.epr=OFF -log4j.category.org.apache.openjpa.kernel=OFF - -# Console appender -log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender -log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout -log4j.appender.CONSOLE.layout.ConversionPattern=%p - %C{1}.%M(%L) | %m%n \ No newline at end of file diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/README b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/README new file mode 100644 index 0000000000..533743ebf6 --- /dev/null +++ b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/README @@ -0,0 +1,153 @@ +Hello World BPEL Sample +====================================== +This sample demonstrates an SCA service implemented by a BPEL process. + +The README in the /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:::::: + [java] Hello + [java] ::message:: + [java] Hello + [java] Status: RESPONSE + [java] Response: + [java] Hello World + [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:::::: +Hello +::message:: +Hello +Status: RESPONSE +Response: +Hello World +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. diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/build.xml b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/build.xml new file mode 100644 index 0000000000..008953e63b --- /dev/null +++ b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/build.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/helloworld-bpel.png b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/helloworld-bpel.png new file mode 100644 index 0000000000..5f53a3c5d1 Binary files /dev/null and b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/helloworld-bpel.png differ diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/helloworld-bpel.svg b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/helloworld-bpel.svg new file mode 100644 index 0000000000..5a98f1a07c --- /dev/null +++ b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/helloworld-bpel.svg @@ -0,0 +1,179 @@ + + + + + + + + + + image/svg+xml + + + + + + + + helloworldws + + HelloWorldServiceComponent + + HelloWorldWebService + + implementation.bpel helloworld.bpel + + diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/pom.xml b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/pom.xml new file mode 100644 index 0000000000..3f4be82f71 --- /dev/null +++ b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/pom.xml @@ -0,0 +1,76 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-samples + 2.0-SNAPSHOT + ../pom.xml + + + zip + sample-helloworld-bpel + Apache Tuscany SCA Sample HelloWorld BPEL + + + + org.apache.tuscany.sca + tuscany-sca-api + 2.0-SNAPSHOT + provided + + + junit + junit + 4.8.1 + test + + + + + ${artifactId} + + + + + org.apache.tuscany.maven.plugins + maven-zip-plugin + alpha2 + true + + + + + org.apache.tuscany.maven.plugins + maven-tuscany-plugin + 2.0-SNAPSHOT + + + org.apache.tuscany.sca.shades + tuscany-bpel + 2.0-SNAPSHOT + + + + + + + diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/java/helloworld/Hello.java b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/java/helloworld/Hello.java new file mode 100644 index 0000000000..dbd3854d7c --- /dev/null +++ b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/java/helloworld/Hello.java @@ -0,0 +1,29 @@ +/* + * 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. + */ + +package helloworld; + +import org.oasisopen.sca.annotation.Remotable; + +@Remotable +public interface Hello { + + String hello(String name); + +} diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..4a56523adb --- /dev/null +++ b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.bpel b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.bpel new file mode 100644 index 0000000000..d58768adfa --- /dev/null +++ b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.bpel @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + concat($helloMessage.TestPart/test:arg0/text(), ' World') + + + + + + + + + Dummy + + + + + + + + $helloMessageResponse.TestResponse/test:messageResponse + + + + + diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.composite b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..08350e8417 --- /dev/null +++ b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.composite @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.wsdl b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.wsdl new file mode 100644 index 0000000000..cf966264ef --- /dev/null +++ b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/helloworld.wsdl @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/log4j.properties b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/log4j.properties new file mode 100644 index 0000000000..8649a71550 --- /dev/null +++ b/sca-java-2.x/trunk/samples/learning-more/implementation-bpel/helloworld-bpel/src/main/resources/log4j.properties @@ -0,0 +1,35 @@ +# +# 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. +# + +# Set root logger level to WARN and its only appender to CONSOLE +log4j.rootLogger=OFF, CONSOLE + +# log4j properties to work with commandline tools. +log4j.category.org.mortbay=OFF +log4j.category.org.hibernate.type=OFF +log4j.category.org.objectweb=OFF +log4j.category.org.apache.ode.sql=OFF +log4j.category.org.apache.ode.axis2=OFF +log4j.category.org.apache.ode.bpel.engine=OFF +log4j.category.org.apache.ode.daohib.bpel.CorrelatorDaoImpl=OFF +log4j.category.org.apache.ode.bpel.epr=OFF +log4j.category.org.apache.openjpa.kernel=OFF + +# Console appender +log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender +log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout +log4j.appender.CONSOLE.layout.ConversionPattern=%p - %C{1}.%M(%L) | %m%n \ No newline at end of file -- cgit v1.2.3