From a7c1a39d8c3c4ef4d5878dbff726085082a17e8a Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:09:31 +0000 Subject: Moving 2.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835136 13f79535-47bb-0310-9956-ffa450edef68 --- .../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 ++++++++++ 6 files changed, 290 insertions(+) create mode 100644 sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/java/sample/HelloworldService.java create mode 100644 sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel create mode 100644 sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl create mode 100644 sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite create mode 100644 sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/webapp/hello.jsp (limited to 'sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src') diff --git a/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/java/sample/HelloworldService.java b/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/java/sample/HelloworldService.java new file mode 100644 index 0000000000..27d7a2297a --- /dev/null +++ b/sca-java-2.x/branches/sca-java-2.0-M3/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/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel b/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel new file mode 100644 index 0000000000..46f96314f8 --- /dev/null +++ b/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/resources/helloworld.bpel @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + concat('Hello ', $tmpVar) + + + + + + diff --git a/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl b/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/resources/helloworld.wsdl new file mode 100644 index 0000000000..1cb338b283 --- /dev/null +++ b/sca-java-2.x/branches/sca-java-2.0-M3/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/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite new file mode 100644 index 0000000000..85d12156d1 --- /dev/null +++ b/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + diff --git a/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..cb3610367b --- /dev/null +++ b/sca-java-2.x/branches/sca-java-2.0-M3/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/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/webapp/hello.jsp b/sca-java-2.x/branches/sca-java-2.0-M3/samples/webapps/helloworld-bpel/src/main/webapp/hello.jsp new file mode 100644 index 0000000000..c52d7b1cb2 --- /dev/null +++ b/sca-java-2.x/branches/sca-java-2.0-M3/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