From ddce09144c53a0edd85f5929605cd3d3191d4ea4 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 10 Feb 2011 08:36:51 +0000 Subject: Copy trunk to beta2 release branch. (I've not yet changed the version so that would need to be done first before the branch is used) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1069272 13f79535-47bb-0310-9956-ffa450edef68 --- .../helloworld-bpel-contribution/README | 31 ++++ .../helloworld-bpel-contribution/build.xml | 95 +++++++++++ .../helloworld-bpel.png | Bin 0 -> 8897 bytes .../helloworld-bpel.svg | 179 +++++++++++++++++++++ .../helloworld-bpel-contribution/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 ++++ .../helloworld-bpel-webapp/README | 6 + .../helloworld-bpel-webapp/pom.xml | 153 ++++++++++++++++++ .../src/main/java/sample/HelloworldService.java | 28 ++++ .../src/main/resources/helloworld.bpel | 66 ++++++++ .../src/main/resources/helloworld.wsdl | 82 ++++++++++ .../src/main/webapp/WEB-INF/web.composite | 37 +++++ .../src/main/webapp/WEB-INF/web.xml | 41 +++++ .../src/main/webapp/hello.jsp | 36 +++++ .../learning-more/implementation-bpel/pom.xml | 44 +++++ 20 files changed, 1164 insertions(+) create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/README create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/build.xml create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/helloworld-bpel.png create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/helloworld-bpel.svg create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/java/helloworld/Hello.java create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.bpel create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.composite create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.wsdl create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/log4j.properties create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/README create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/java/sample/HelloworldService.java create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/resources/helloworld.bpel create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/resources/helloworld.wsdl create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/WEB-INF/web.composite create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/hello.jsp create mode 100644 sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/pom.xml (limited to 'sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel') diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/README b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/README new file mode 100644 index 0000000000..c84dba22f4 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/README @@ -0,0 +1,31 @@ +Hello World BPEL Sample +====================================== +This sample demonstrates an SCA service implemented by a BPEL process. + +See http://tuscany.apache.org/documentation-2x/20-beta-samples-documentation.html +for more information + +=============== OLD INFO ====================== + +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. + diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/build.xml b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/build.xml new file mode 100644 index 0000000000..d94388f466 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/build.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/helloworld-bpel.png b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/helloworld-bpel.png new file mode 100644 index 0000000000..5f53a3c5d1 Binary files /dev/null and b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/helloworld-bpel.png differ diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/helloworld-bpel.svg b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/helloworld-bpel.svg new file mode 100644 index 0000000000..5a98f1a07c --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/helloworld-bpel.svg @@ -0,0 +1,179 @@ + + + + + + + + + + image/svg+xml + + + + + + + + helloworldws + + HelloWorldServiceComponent + + HelloWorldWebService + + implementation.bpel helloworld.bpel + + diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/pom.xml b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/pom.xml new file mode 100644 index 0000000000..59d74cb5ae --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/pom.xml @@ -0,0 +1,76 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-samples + 2.0-SNAPSHOT + ../../../pom.xml + + + zip + sample-implementation-bpel-helloworld-contribution + Apache Tuscany SCA Sample implementation.bpel HelloWorld Contribution + + + + org.apache.tuscany.sca + tuscany-sca-api + 2.0-SNAPSHOT + provided + + + junit + junit + 4.8.1 + test + + + + + ${project.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 + tuscany-implementation-bpel-runtime + 2.0-SNAPSHOT + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/java/helloworld/Hello.java b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/java/helloworld/Hello.java new file mode 100644 index 0000000000..dbd3854d7c --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/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/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..4a56523adb --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/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/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.bpel b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.bpel new file mode 100644 index 0000000000..d58768adfa --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/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/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.composite b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.composite new file mode 100644 index 0000000000..08350e8417 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.composite @@ -0,0 +1,29 @@ + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.wsdl b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.wsdl new file mode 100644 index 0000000000..cf966264ef --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/helloworld.wsdl @@ -0,0 +1,94 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/log4j.properties b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/src/main/resources/log4j.properties new file mode 100644 index 0000000000..8649a71550 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-contribution/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 diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/README b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/README new file mode 100644 index 0000000000..2576b0ff13 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/README @@ -0,0 +1,6 @@ +Hello World BPEL WebApp Sample +====================================== +This sample demonstrates an SCA service implemented by a BPEL process. + +See http://tuscany.apache.org/documentation-2x/20-beta-samples-documentation.html +for more information \ No newline at end of file diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/pom.xml b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/pom.xml new file mode 100644 index 0000000000..8417ee478f --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/pom.xml @@ -0,0 +1,153 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-samples + 2.0-SNAPSHOT + ../../../pom.xml + + + sample-implementation-bpel-helloworld-webapp + war + Apache Tuscany SCA Sample implementation.bpel Helloworld WebApp + + + 2.0-SNAPSHOT + 6.1.18 + + + + + + org.apache.tuscany.sca + tuscany-base-runtime + ${tuscany.version} + + + + org.apache.tuscany.sca + tuscany-implementation-bpel-runtime + ${tuscany.version} + runtime + + + + + junit + junit + 4.8.1 + test + + + + + org.mortbay.jetty + jetty + ${jetty.version} + provided + + + org.mortbay.jetty + jetty-util + ${jetty.version} + provided + + + org.mortbay.jetty + jetty-management + ${jetty.version} + provided + + + + + helloworld-bpel + + + + org.apache.maven.plugins + maven-dependency-plugin + + + unpack + compile + + unpack + + + + + org.apache.ode + ode-dao-jpa-ojpa-derby + 1.1.1 + zip + false + ${project.build.directory}/classes + **/* + + + + + + + + + org.mortbay.jetty + maven-jetty-plugin + 6.1.18 + + helloworld-bpel + foo + 9999 + + + + start-jetty + process-test-classes + + run + + + 0 + true + + + 8085 + + + + + + stop-jetty + prepare-package + + stop + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/java/sample/HelloworldService.java b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/java/sample/HelloworldService.java new file mode 100644 index 0000000000..c1a50d9be5 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/java/sample/HelloworldService.java @@ -0,0 +1,28 @@ +/* + * 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 sample; + +import org.oasisopen.sca.annotation.Remotable; + +@Remotable +public interface HelloworldService { + + String hello(String name); + +} diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/resources/helloworld.bpel b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/resources/helloworld.bpel new file mode 100644 index 0000000000..f1e8895f76 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/resources/helloworld.bpel @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + concat('Hello ', $myVar.TestPart/test:message/text()) + + + + $tmpVar + $myVar.TestPart/test:message + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/resources/helloworld.wsdl b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/resources/helloworld.wsdl new file mode 100644 index 0000000000..46cf381577 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/resources/helloworld.wsdl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..3d36adadeb --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..bf01a7b759 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,41 @@ + + + + + helloworld-bpel + + + tuscany.helloworld-bpel + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany.helloworld-bpel + /* + + + + hello.jsp + + + diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/hello.jsp b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/hello.jsp new file mode 100644 index 0000000000..c52d7b1cb2 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/helloworld-bpel-webapp/src/main/webapp/hello.jsp @@ -0,0 +1,36 @@ +<%-- + * 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. +--%> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> + + + + + + +

helloworld-bpel

+ + Calling HelloworldService sayHello("world") returns: + +

+ + <%= service.hello("world") %> + + + diff --git a/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/pom.xml b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/pom.xml new file mode 100644 index 0000000000..e5945d2f52 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta2/samples/learning-more/implementation-bpel/pom.xml @@ -0,0 +1,44 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-samples-learning-more + 2.0-SNAPSHOT + ../pom.xml + + tuscany-sample-implementation-bpel + pom + Apache Tuscany SCA Implementation BPEL Samples + + + + default + + true + + + helloworld-bpel-contribution + helloworld-bpel-webapp + + + + -- cgit v1.2.3