From 8147a9a796ff3530d407c8ed4421efae5515fa71 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 31 Jan 2009 05:27:28 +0000 Subject: Moving samples that are not part of the main build to contrib folder git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@739507 13f79535-47bb-0310-9956-ffa450edef68 --- java/sca/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 ------ 13 files changed, 568 deletions(-) delete mode 100644 java/sca/samples/helloworld-distributed/README delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-node/README delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-node/pom.xml delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-node/src/main/java/sample/Helloworld.java delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-node/src/main/java/sample/HelloworldImpl.java delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-node/src/main/resources/META-INF/sca-deployables/Helloworld.composite delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-webapp/README delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-webapp/build.xml delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-webapp/pom.xml delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/java/sample/Helloworld.java delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.composite delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.xml delete mode 100644 java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/hello.jsp (limited to 'java/sca/samples/helloworld-distributed') diff --git a/java/sca/samples/helloworld-distributed/README b/java/sca/samples/helloworld-distributed/README deleted file mode 100644 index 9462ae4218..0000000000 --- a/java/sca/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/java/sca/samples/helloworld-distributed/helloworld-node/README b/java/sca/samples/helloworld-distributed/helloworld-node/README deleted file mode 100644 index 9462ae4218..0000000000 --- a/java/sca/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/java/sca/samples/helloworld-distributed/helloworld-node/pom.xml b/java/sca/samples/helloworld-distributed/helloworld-node/pom.xml deleted file mode 100644 index 1cdedf7d15..0000000000 --- a/java/sca/samples/helloworld-distributed/helloworld-node/pom.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - sample-helloworld-node - Apache Tuscany SCA Helloworld Node Sample - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node-dynamic - 2.0-SNAPSHOT - test - - - - junit - junit - 4.2 - test - - - - - - ${artifactId} - - diff --git a/java/sca/samples/helloworld-distributed/helloworld-node/src/main/java/sample/Helloworld.java b/java/sca/samples/helloworld-distributed/helloworld-node/src/main/java/sample/Helloworld.java deleted file mode 100644 index e2b7c698ac..0000000000 --- a/java/sca/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.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Helloworld { - - String sayHello(String name); - -} diff --git a/java/sca/samples/helloworld-distributed/helloworld-node/src/main/java/sample/HelloworldImpl.java b/java/sca/samples/helloworld-distributed/helloworld-node/src/main/java/sample/HelloworldImpl.java deleted file mode 100644 index 033b4088c8..0000000000 --- a/java/sca/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/java/sca/samples/helloworld-distributed/helloworld-node/src/main/resources/META-INF/sca-deployables/Helloworld.composite b/java/sca/samples/helloworld-distributed/helloworld-node/src/main/resources/META-INF/sca-deployables/Helloworld.composite deleted file mode 100644 index 0f827390c8..0000000000 --- a/java/sca/samples/helloworld-distributed/helloworld-node/src/main/resources/META-INF/sca-deployables/Helloworld.composite +++ /dev/null @@ -1,28 +0,0 @@ - - - - - - - - - diff --git a/java/sca/samples/helloworld-distributed/helloworld-webapp/README b/java/sca/samples/helloworld-distributed/helloworld-webapp/README deleted file mode 100644 index 9462ae4218..0000000000 --- a/java/sca/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/java/sca/samples/helloworld-distributed/helloworld-webapp/build.xml b/java/sca/samples/helloworld-distributed/helloworld-webapp/build.xml deleted file mode 100644 index ef49524e39..0000000000 --- a/java/sca/samples/helloworld-distributed/helloworld-webapp/build.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/java/sca/samples/helloworld-distributed/helloworld-webapp/pom.xml b/java/sca/samples/helloworld-distributed/helloworld-webapp/pom.xml deleted file mode 100644 index b298c4eb62..0000000000 --- a/java/sca/samples/helloworld-distributed/helloworld-webapp/pom.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - sample-helloworld-webapp - war - Apache Tuscany SCA Distributed Helloworld WebApp Sample - - - - org.apache.tuscany.sca - tuscany-host-webapp - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-web-runtime - 2.0-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-sca-jms - 2.0-SNAPSHOT - runtime - - - - - - ${artifactId} - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 2.0-SNAPSHOT - - - - generate - - - - - - - diff --git a/java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/java/sample/Helloworld.java b/java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/java/sample/Helloworld.java deleted file mode 100644 index 04918244f0..0000000000 --- a/java/sca/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.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface Helloworld { - - String sayHello(String name); -} diff --git a/java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.composite b/java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 0e8de1be42..0000000000 --- a/java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - diff --git a/java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.xml b/java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 1eefec1c48..0000000000 --- a/java/sca/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/java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/hello.jsp b/java/sca/samples/helloworld-distributed/helloworld-webapp/src/main/webapp/hello.jsp deleted file mode 100644 index 873329cf7c..0000000000 --- a/java/sca/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") %> - - - -- cgit v1.2.3