From 4537071c7caf6b151c6984fad1e11dbf698f50b0 Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 30 Oct 2009 08:29:42 +0000 Subject: Create 2.0-M4 release branch git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@831226 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/webapps/helloworld-bpel/pom.xml | 130 +++++++++++++++++++++ .../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 ++++++ 7 files changed, 420 insertions(+) create mode 100644 branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/pom.xml create mode 100644 branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/java/sample/HelloworldService.java create mode 100644 branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel create mode 100644 branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl create mode 100644 branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite create mode 100644 branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.xml create mode 100644 branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/webapp/hello.jsp (limited to 'branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel') diff --git a/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/pom.xml b/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/pom.xml new file mode 100644 index 0000000000..e4d47340c2 --- /dev/null +++ b/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/pom.xml @@ -0,0 +1,130 @@ + + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 2.0-M4-SNAPSHOT + ../../pom.xml + + + helloworld-bpel + war + Apache Tuscany SCA Sample Helloworld BPEL + + + 2.0-M4-SNAPSHOT + 6.1.19 + + + + + + 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 + 3.8.2 + test + + + + + org.mortbay.jetty + jetty + ${jetty.version} + provided + + + org.mortbay.jetty + jetty-util + ${jetty.version} + provided + + + org.mortbay.jetty + jetty-management + ${jetty.version} + provided + + + + + ${artifactId} + + + + 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 + ${jetty.version} + + + + + diff --git a/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/java/sample/HelloworldService.java b/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/java/sample/HelloworldService.java new file mode 100644 index 0000000000..c1a50d9be5 --- /dev/null +++ b/branches/sca-java-2.0-M4/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/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel b/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel new file mode 100644 index 0000000000..f1e8895f76 --- /dev/null +++ b/branches/sca-java-2.0-M4/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/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl b/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl new file mode 100644 index 0000000000..46cf381577 --- /dev/null +++ b/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite b/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..3ffe604ef7 --- /dev/null +++ b/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.xml b/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..bf01a7b759 --- /dev/null +++ b/branches/sca-java-2.0-M4/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/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/webapp/hello.jsp b/branches/sca-java-2.0-M4/samples/webapps/helloworld-bpel/src/main/webapp/hello.jsp new file mode 100644 index 0000000000..c52d7b1cb2 --- /dev/null +++ b/branches/sca-java-2.0-M4/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