From 24deb86ddc39cef9631e17e45221e2f868985bc2 Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 7 Aug 2009 13:53:57 +0000 Subject: Not included in release git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@802006 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/helloworld-bpel-ws/README | 151 --------------- .../samples/helloworld-bpel-ws/build.xml | 95 ---------- .../samples/helloworld-bpel-ws/helloworld-bpel.png | Bin 8897 -> 0 bytes .../samples/helloworld-bpel-ws/helloworld-bpel.svg | 179 ------------------ .../samples/helloworld-bpel-ws/pom.xml | 205 --------------------- .../src/main/java/helloworld/BPELClient.java | 43 ----- .../src/main/resources/helloworld.bpel | 66 ------- .../src/main/resources/helloworld.composite | 33 ---- .../src/main/resources/helloworld.wsdl | 82 --------- .../src/main/resources/log4j.properties | 35 ---- .../java/helloworld/BPELHelloWorldTestCase.java | 59 ------ .../samples/helloworld-distributed/README | 29 --- .../helloworld-distributed/helloworld-node/README | 29 --- .../helloworld-distributed/helloworld-node/pom.xml | 57 ------ .../src/main/java/sample/Helloworld.java | 29 --- .../src/main/java/sample/HelloworldImpl.java | 29 --- .../META-INF/sca-deployables/Helloworld.composite | 28 --- .../helloworld-webapp/README | 29 --- .../helloworld-webapp/build.xml | 127 ------------- .../helloworld-webapp/pom.xml | 78 -------- .../src/main/java/sample/Helloworld.java | 27 --- .../src/main/webapp/WEB-INF/web.composite | 29 --- .../src/main/webapp/WEB-INF/web.xml | 41 ----- .../helloworld-webapp/src/main/webapp/hello.jsp | 36 ---- .../sca-java-1.5.1/samples/helloworld-jsp/pom.xml | 61 ------ .../src/main/java/sample/HelloworldService.java | 7 - .../main/java/sample/HelloworldServiceImpl.java | 12 -- .../webapp/META-INF/sca-deployables/web.composite | 34 ---- .../helloworld-jsp/src/main/webapp/WEB-INF/web.xml | 42 ----- .../helloworld-jsp/src/main/webapp/hello.jsp | 36 ---- 30 files changed, 1708 deletions(-) delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/README delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/build.xml delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/helloworld-bpel.png delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/helloworld-bpel.svg delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/pom.xml delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/java/helloworld/BPELClient.java delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.bpel delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.composite delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.wsdl delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/log4j.properties delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/test/java/helloworld/BPELHelloWorldTestCase.java delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/README delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/README delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/pom.xml delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/java/sample/Helloworld.java delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/java/sample/HelloworldImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/resources/META-INF/sca-deployables/Helloworld.composite delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/README delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/build.xml delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/pom.xml delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/java/sample/Helloworld.java delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.composite delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.xml delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/hello.jsp delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-jsp/pom.xml delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml delete mode 100644 branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/hello.jsp diff --git a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/README b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/README deleted file mode 100644 index 5c669f5da5..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/README +++ /dev/null @@ -1,151 +0,0 @@ -Hello World BPEL Webservices Sample -====================================== -This sample demonstrates an SCA service implemented by a BPEL process, made available as a Web service. - -The README in the samples directory (the directory above this) provides -general instructions about building and running samples. Take a look there -first. - -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/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/build.xml b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/build.xml deleted file mode 100644 index 3ad74393c9..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/build.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/helloworld-bpel.png b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/helloworld-bpel.png deleted file mode 100644 index 5f53a3c5d1..0000000000 Binary files a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/helloworld-bpel.png and /dev/null differ diff --git a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/helloworld-bpel.svg b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/helloworld-bpel.svg deleted file mode 100644 index 5a98f1a07c..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/helloworld-bpel.svg +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - - - - - image/svg+xml - - - - - - - - helloworldws - - HelloWorldServiceComponent - - HelloWorldWebService - - implementation.bpel helloworld.bpel - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/pom.xml b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/pom.xml deleted file mode 100644 index 85743bfd92..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/pom.xml +++ /dev/null @@ -1,205 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5.1-SNAPSHOT - ../../pom.xml - - sample-helloworld-bpel-ws - Apache Tuscany SCA HelloWorld BPEL as Webservice Sample - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.5.1-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.5.1-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-bpel-ode - 1.5.1-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.5.1-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-jetty - 1.5.1-SNAPSHOT - runtime - - - - org.apache.tuscany.sdo - tuscany-sdo-impl - 1.1-incubating - - - - xerces - xercesImpl - 2.8.1 - - - - junit - junit - 4.2 - test - - - - org.apache.tuscany.sca - tuscany-wsdl2java - 1.5.1-SNAPSHOT - - - - org.apache.tuscany.sdo - tuscany-sdo-tools - 1.1-incubating - - - - org.codehaus.woodstox - wstx-asl - 3.2.1 - runtime - - - - com.sun.xml.bind - jaxb-impl - 2.1.7 - compile - - - javax.xml.stream - stax-api - - - - - - - - ${artifactId} - - - org.apache.maven.plugins - maven-surefire-plugin - - 2.3.1 - - false - false - true - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - test-compile - - unpack - - - - - org.apache.ode - ode-dao-jpa-ojpa-derby - 1.1 - zip - true - ${project.build.directory}/test-classes/ - - - - - - - - org.apache.tuscany.sdo - tuscany-sdo-plugin - 1.1-incubating - - - generate-bpel-helloworld - generate-sources - - ${basedir}/src/main/resources/helloworld.wsdl - ${basedir}/target/wsdl2java-source - HelloWorld - true - true - true - - - generate - - - - - - org.apache.tuscany.sca - tuscany-maven-wsdl2java - 1.5.1-SNAPSHOT - - - - ${basedir}/src/main/resources/helloworld.wsdl - - - generate - - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/java/helloworld/BPELClient.java b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/java/helloworld/BPELClient.java deleted file mode 100644 index 971a5373e9..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/java/helloworld/BPELClient.java +++ /dev/null @@ -1,43 +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.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType; -import org.apache.tuscany.sca.host.embedded.SCADomain; - -/** - * Simple BPEL sample application invoking a helloworld - * - * @version $Rev: 613905 $ $Date: 2008-01-21 14:41:15 +0000 (Mon, 21 Jan 2008) $ - */ -public class BPELClient { - public static void main(String[] args) throws Exception { - - SCADomain scaDomain = SCADomain.newInstance("helloworld.composite"); - HelloPortType bpelService = scaDomain.getService(HelloPortType.class, "BPELHelloWorldComponent"); - - String result = bpelService.hello("Hello"); - System.out.println(result); - - scaDomain.close(); - - System.exit(0); - } -} diff --git a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.bpel b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.bpel deleted file mode 100644 index a88aa7960c..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.bpel +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - concat($tmpVar,' World') - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.composite b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.composite deleted file mode 100644 index 97262109e6..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.wsdl b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.wsdl deleted file mode 100644 index 1cb338b283..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/helloworld.wsdl +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/log4j.properties b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/main/resources/log4j.properties deleted file mode 100644 index c1bc0a0b81..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/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/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/test/java/helloworld/BPELHelloWorldTestCase.java b/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/test/java/helloworld/BPELHelloWorldTestCase.java deleted file mode 100644 index 6ad63f87d9..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-bpel-ws/src/test/java/helloworld/BPELHelloWorldTestCase.java +++ /dev/null @@ -1,59 +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 junit.framework.TestCase; - -import org.apache.tuscany.implementation.bpel.example.helloworld.HelloPortType; -import org.apache.tuscany.sca.host.embedded.SCADomain; - -/** - * Tests the BPEL service - * - * @version $Rev: 636807 $ $Date: 2008-03-13 17:32:45 +0000 (Thu, 13 Mar 2008) $ - */ -public class BPELHelloWorldTestCase extends TestCase { - - private SCADomain scaDomain; - HelloPortType bpelService = null; - - /** - * @throws java.lang.Exception - */ - @Override - protected void setUp() throws Exception { - scaDomain = SCADomain.newInstance("helloworld.composite"); - bpelService = scaDomain.getService(HelloPortType.class, "BPELHelloWorldComponent"); - - } - - /** - * @throws java.lang.Exception - */ - @Override - protected void tearDown() throws Exception { - scaDomain.close(); - } - - public void testInvoke() throws Exception { - String response = bpelService.hello("Hello"); - assertEquals("Hello World", response); - } -} diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/README b/branches/sca-java-1.5.1/samples/helloworld-distributed/README deleted file mode 100644 index 9462ae4218..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/README +++ /dev/null @@ -1,29 +0,0 @@ -Distributed Helloworld Sample -============================= - -This sample demonstrates a distributed SCA domain using the JMS implementation of binding.sca which -automatically discovers available nodes and the services they contain. - -In this sample there are two nodes in the domain, a standalone node containing a Helloworld component, -and a webapp using a JSP with which invokes the Helloworld service in the domain. - -To run the sample: - -- Build the two sample modules with mvn or Ant. -- Deploy the helloworld-webapp war to Tomcat. -- Start the standalone node by: - in the helloworld-node folder do "mvn dependency:copy-dependencies" then: - java -Djava.ext.dirs=target\dependency -jar target\dependency\tuscany-node-dynamic-1.4-SNAPSHOT.jar target\sample-helloworld-node.jar - -- On a web browser go to: - http://localhost:8080/sample-helloworld-webapp - -You should see "Hello world" returned on the web page and the node console should show "HelloworldImpl.sayHello: world" - -How it works: - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/README b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/README deleted file mode 100644 index 9462ae4218..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/README +++ /dev/null @@ -1,29 +0,0 @@ -Distributed Helloworld Sample -============================= - -This sample demonstrates a distributed SCA domain using the JMS implementation of binding.sca which -automatically discovers available nodes and the services they contain. - -In this sample there are two nodes in the domain, a standalone node containing a Helloworld component, -and a webapp using a JSP with which invokes the Helloworld service in the domain. - -To run the sample: - -- Build the two sample modules with mvn or Ant. -- Deploy the helloworld-webapp war to Tomcat. -- Start the standalone node by: - in the helloworld-node folder do "mvn dependency:copy-dependencies" then: - java -Djava.ext.dirs=target\dependency -jar target\dependency\tuscany-node-dynamic-1.4-SNAPSHOT.jar target\sample-helloworld-node.jar - -- On a web browser go to: - http://localhost:8080/sample-helloworld-webapp - -You should see "Hello world" returned on the web page and the node console should show "HelloworldImpl.sayHello: world" - -How it works: - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/pom.xml b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/pom.xml deleted file mode 100644 index 3e27884696..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5.1-SNAPSHOT - ../../pom.xml - - sample-helloworld-node - Apache Tuscany SCA Helloworld Node Sample - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.5.1-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node-dynamic - 1.5.1-SNAPSHOT - test - - - - junit - junit - 4.2 - test - - - - - - ${artifactId} - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/java/sample/Helloworld.java b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/java/sample/Helloworld.java deleted file mode 100644 index 386426df73..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/java/sample/Helloworld.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 sample; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Helloworld { - - String sayHello(String name); - -} diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/java/sample/HelloworldImpl.java b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/java/sample/HelloworldImpl.java deleted file mode 100644 index 033b4088c8..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/java/sample/HelloworldImpl.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 sample; - -public class HelloworldImpl implements Helloworld { - - public String sayHello(String name) { - System.out.println("HelloworldImpl.sayHello: " + name); - return "Hello " + name; - } - -} diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/resources/META-INF/sca-deployables/Helloworld.composite b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/resources/META-INF/sca-deployables/Helloworld.composite deleted file mode 100644 index 0f827390c8..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-node/src/main/resources/META-INF/sca-deployables/Helloworld.composite +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/README b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/README deleted file mode 100644 index 9462ae4218..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/README +++ /dev/null @@ -1,29 +0,0 @@ -Distributed Helloworld Sample -============================= - -This sample demonstrates a distributed SCA domain using the JMS implementation of binding.sca which -automatically discovers available nodes and the services they contain. - -In this sample there are two nodes in the domain, a standalone node containing a Helloworld component, -and a webapp using a JSP with which invokes the Helloworld service in the domain. - -To run the sample: - -- Build the two sample modules with mvn or Ant. -- Deploy the helloworld-webapp war to Tomcat. -- Start the standalone node by: - in the helloworld-node folder do "mvn dependency:copy-dependencies" then: - java -Djava.ext.dirs=target\dependency -jar target\dependency\tuscany-node-dynamic-1.4-SNAPSHOT.jar target\sample-helloworld-node.jar - -- On a web browser go to: - http://localhost:8080/sample-helloworld-webapp - -You should see "Hello world" returned on the web page and the node console should show "HelloworldImpl.sayHello: world" - -How it works: - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/build.xml b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/build.xml deleted file mode 100644 index 68fefcdaf7..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/build.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/pom.xml b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/pom.xml deleted file mode 100644 index c9f60da843..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/pom.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5.1-SNAPSHOT - ../../pom.xml - - sample-helloworld-webapp - war - Apache Tuscany SCA Distributed Helloworld WebApp Sample - - - - org.apache.tuscany.sca - tuscany-host-webapp - 1.5.1-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.5.1-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-web-runtime - 1.5.1-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-sca-jms - 1.5.1-SNAPSHOT - runtime - - - - - - ${artifactId} - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.5.1-SNAPSHOT - - - - generate - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/java/sample/Helloworld.java b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/java/sample/Helloworld.java deleted file mode 100644 index 7dd39b82a4..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/java/sample/Helloworld.java +++ /dev/null @@ -1,27 +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 sample; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Helloworld { - - String sayHello(String name); -} diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.composite b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 0e8de1be42..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.xml b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 1eefec1c48..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - Apache Tuscany Distributed Helloworld Sample - - - tuscany - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany - /* - - - - hello.jsp - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/hello.jsp b/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/hello.jsp deleted file mode 100644 index 873329cf7c..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/hello.jsp +++ /dev/null @@ -1,36 +0,0 @@ - -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> - - - - - - -

Apache Tuscany Distributed Helloworld Sample

- - Calling service.sayHello("world") returns: - -

- - <%= service.sayHello("world") %> - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-jsp/pom.xml b/branches/sca-java-1.5.1/samples/helloworld-jsp/pom.xml deleted file mode 100644 index 636952b5e6..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-jsp/pom.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5.1-SNAPSHOT - ../../pom.xml - - sample-helloworld-jsp - war - Apache Tuscany SCA Helloworld JSP Sample - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.5.1-SNAPSHOT - compile - - - - org.apache.tuscany.sca - tuscany-implementation-web-runtime - 1.5.1-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-webapp - 1.5.1-SNAPSHOT - runtime - - - - - - ${artifactId} - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java b/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java deleted file mode 100644 index 2b92fd4661..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/java/sample/HelloworldService.java +++ /dev/null @@ -1,7 +0,0 @@ -package sample; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java b/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java deleted file mode 100644 index be83d3b407..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/java/sample/HelloworldServiceImpl.java +++ /dev/null @@ -1,12 +0,0 @@ -package sample; - -import org.osoa.sca.annotations.Service; - -@Service(HelloworldService.class) -public class HelloworldServiceImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - -} diff --git a/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite b/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite deleted file mode 100644 index 16bc08fc10..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/META-INF/sca-deployables/web.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml b/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 46285614da..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Apache Tuscany Helloworld JSP Sample - - - tuscany - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany - /* - - - - hello.jsp - - - diff --git a/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/hello.jsp b/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/hello.jsp deleted file mode 100644 index beac8e457f..0000000000 --- a/branches/sca-java-1.5.1/samples/helloworld-jsp/src/main/webapp/hello.jsp +++ /dev/null @@ -1,36 +0,0 @@ - -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> - - - - - - -

Apache Tuscany Helloworld JSP Sample

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

- - <%= service.sayHello("world") %> - - - -- cgit v1.2.3