From 52cf4b8e3f99706027da5c1363292a2aae59d87d Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:23:01 +0000 Subject: Moving 2.x tags git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835152 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/sample/HelloWorldClient.java | 37 ------------ .../src/main/java/sample/HelloWorldService.java | 29 ---------- .../main/java/sample/HelloWorldServiceImpl.java | 31 ---------- .../src/main/webapp/META-INF/context.xml | 34 ----------- .../src/main/webapp/WEB-INF/jetty-env.xml | 48 ---------------- .../src/main/webapp/WEB-INF/web.composite | 44 --------------- .../helloworld-jms/src/main/webapp/WEB-INF/web.xml | 66 ---------------------- .../helloworld-jms/src/main/webapp/hello.jsp | 41 -------------- 8 files changed, 330 deletions(-) delete mode 100644 tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java delete mode 100644 tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldService.java delete mode 100644 tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java delete mode 100644 tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml delete mode 100644 tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/jetty-env.xml delete mode 100644 tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/web.composite delete mode 100644 tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/web.xml delete mode 100644 tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/hello.jsp (limited to 'tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src') diff --git a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java b/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java deleted file mode 100644 index f209f11605..0000000000 --- a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java +++ /dev/null @@ -1,37 +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; - -/** - * The HelloWorld client implementation - */ -public class HelloWorldClient implements HelloWorldService { - - HelloWorldService helloWorldRef; - - public String sayHello(String name) { - System.out.println("HelloWorldClient.sayHello " + name); - return helloWorldRef.sayHello(name); - } - - public void setHelloWorldRef(HelloWorldService helloWorldRef) { - System.out.println("HelloWorldClient.setHelloWorldService " + helloWorldRef); - this.helloWorldRef = helloWorldRef; - } -} \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldService.java b/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldService.java deleted file mode 100644 index df2a852161..0000000000 --- a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldService.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; - -/** - * The interface for the helloworld service - */ -@Remotable -public interface HelloWorldService { - public String sayHello(String name); -} diff --git a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java b/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java deleted file mode 100644 index c09af51e23..0000000000 --- a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java +++ /dev/null @@ -1,31 +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; - -/** - * This class implements the HelloWorld service. - */ -public class HelloWorldServiceImpl implements HelloWorldService { - - public String sayHello(String name) { - System.out.println("HelloWorldServiceImpl.sayHello " + name); - return "Hello " + name; - } - -} diff --git a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml b/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml deleted file mode 100644 index 7575edfc29..0000000000 --- a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/jetty-env.xml b/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/jetty-env.xml deleted file mode 100644 index a8cd27f6c6..0000000000 --- a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/jetty-env.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - ConnectionFactory - - - vm://localhost?broker.persistent=false - - - - - - HelloWorldService - - - DEMO - - - - - diff --git a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/web.composite b/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 5c52638661..0000000000 --- a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/web.xml b/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 86710435ae..0000000000 --- a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - Apache Tuscany JMS Web Service Sample - - - tuscany - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany - /* - - - - hello.jsp - - - - - - - diff --git a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/hello.jsp b/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/hello.jsp deleted file mode 100644 index 9ae037f2c2..0000000000 --- a/tags/java/sca/2.0-M4-RC1/samples/webapps/helloworld-jms/src/main/webapp/hello.jsp +++ /dev/null @@ -1,41 +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. ---%> - -<%@ page contentType="text/html;charset=UTF-8" language="java" %> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca" %> - - - - -HelloWorld JMS sample - - - -If this sample is working correctly you should see "Hello World" on the next line... -

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

-If you do not see "Hello World" on the line above then there has been a problem. -

-The sample requires JMS resources be manually configured in the server environment, these are: -a JMS connection factory named "ConnectionFactory", and a destination queues named "HelloWorldService". -See the sample README file for more information. - - - -- cgit v1.2.3