From 0d7533759f027a0fafc5844210ddf4e35122c758 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 22 Jul 2010 09:11:51 +0000 Subject: Create branch for next release git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@966547 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/webapps/helloworld-bpel/README | 7 + .../samples/webapps/helloworld-bpel/pom.xml | 160 +++++++++++++++++++++ .../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 ++++++ .../helloworld-bpel/src/main/webapp/hello.jsp | 36 +++++ 8 files changed, 457 insertions(+) create mode 100644 sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/README create mode 100644 sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/pom.xml create mode 100644 sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/java/sample/HelloworldService.java create mode 100644 sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel create mode 100644 sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl create mode 100644 sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite create mode 100644 sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/webapp/hello.jsp (limited to 'sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel') diff --git a/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/README b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/README new file mode 100644 index 0000000000..828aadb0f1 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/README @@ -0,0 +1,7 @@ +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). + +TODO - finish \ No newline at end of file diff --git a/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/pom.xml b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/pom.xml new file mode 100644 index 0000000000..0e8b0cf70e --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/pom.xml @@ -0,0 +1,160 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-Beta1-SNAPSHOT + ../../pom.xml + + + sample-helloworld-bpel-webapp + war + Apache Tuscany SCA Sample Helloworld BPEL + + + 2.0-Beta1-SNAPSHOT + 6.1.18 + + + + + + org.apache.tuscany.sca + tuscany-sca-api + ${tuscany.version} + + + + org.apache.tuscany.sca + tuscany-implementation-web-runtime + ${tuscany.version} + runtime + + + + 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-Beta1/samples/webapps/helloworld-bpel/src/main/java/sample/HelloworldService.java b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/java/sample/HelloworldService.java new file mode 100644 index 0000000000..c1a50d9be5 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/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-Beta1/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel new file mode 100644 index 0000000000..f1e8895f76 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/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-Beta1/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl new file mode 100644 index 0000000000..46cf381577 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/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-Beta1/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..3d36adadeb --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..bf01a7b759 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/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-Beta1/samples/webapps/helloworld-bpel/src/main/webapp/hello.jsp b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/src/main/webapp/hello.jsp new file mode 100644 index 0000000000..c52d7b1cb2 --- /dev/null +++ b/sca-java-2.x/branches/2.0-Beta1/samples/webapps/helloworld-bpel/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") %> + + + -- cgit v1.2.3