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 --- .../src/main/java/sample/ChatCallback.java | 27 -------- .../src/main/java/sample/ChatService.java | 32 ---------- .../src/main/java/sample/ChatServiceImpl.java | 36 ----------- .../chat2-webapp/src/main/resources/chat.composite | 40 ------------ .../src/main/webapp/META-INF/sca-contribution.xml | 24 ------- .../chat2-webapp/src/main/webapp/WEB-INF/web.xml | 37 ----------- .../samples/chat2-webapp/src/main/webapp/chat.html | 73 ---------------------- 7 files changed, 269 deletions(-) delete mode 100644 java/sca/samples/chat2-webapp/src/main/java/sample/ChatCallback.java delete mode 100644 java/sca/samples/chat2-webapp/src/main/java/sample/ChatService.java delete mode 100644 java/sca/samples/chat2-webapp/src/main/java/sample/ChatServiceImpl.java delete mode 100644 java/sca/samples/chat2-webapp/src/main/resources/chat.composite delete mode 100644 java/sca/samples/chat2-webapp/src/main/webapp/META-INF/sca-contribution.xml delete mode 100644 java/sca/samples/chat2-webapp/src/main/webapp/WEB-INF/web.xml delete mode 100644 java/sca/samples/chat2-webapp/src/main/webapp/chat.html (limited to 'java/sca/samples/chat2-webapp/src/main') diff --git a/java/sca/samples/chat2-webapp/src/main/java/sample/ChatCallback.java b/java/sca/samples/chat2-webapp/src/main/java/sample/ChatCallback.java deleted file mode 100644 index 261eb12124..0000000000 --- a/java/sca/samples/chat2-webapp/src/main/java/sample/ChatCallback.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 ChatCallback { - void newMsg(String msg); -} diff --git a/java/sca/samples/chat2-webapp/src/main/java/sample/ChatService.java b/java/sca/samples/chat2-webapp/src/main/java/sample/ChatService.java deleted file mode 100644 index a5aff8f316..0000000000 --- a/java/sca/samples/chat2-webapp/src/main/java/sample/ChatService.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed 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 javax.jws.Oneway; - -import org.oasisopen.sca.annotation.Callback; -import org.oasisopen.sca.annotation.Remotable; -import org.oasisopen.sca.annotation.Scope; - -@Remotable -@Scope("COMPOSITE") -@Callback(ChatCallback.class) -public interface ChatService { - - @Oneway - public void addMsg(String msg); -} diff --git a/java/sca/samples/chat2-webapp/src/main/java/sample/ChatServiceImpl.java b/java/sca/samples/chat2-webapp/src/main/java/sample/ChatServiceImpl.java deleted file mode 100644 index fd22fb70e8..0000000000 --- a/java/sca/samples/chat2-webapp/src/main/java/sample/ChatServiceImpl.java +++ /dev/null @@ -1,36 +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.Callback; - -public class ChatServiceImpl implements ChatService { - - ChatCallback chatCallback; - - @Callback - public void setCallback(ChatCallback chatCallback) { - this.chatCallback = chatCallback; - } - - public void addMsg(String msg) { - chatCallback.newMsg(msg); - } -} diff --git a/java/sca/samples/chat2-webapp/src/main/resources/chat.composite b/java/sca/samples/chat2-webapp/src/main/resources/chat.composite deleted file mode 100644 index 93a10d0fdf..0000000000 --- a/java/sca/samples/chat2-webapp/src/main/resources/chat.composite +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/java/sca/samples/chat2-webapp/src/main/webapp/META-INF/sca-contribution.xml b/java/sca/samples/chat2-webapp/src/main/webapp/META-INF/sca-contribution.xml deleted file mode 100644 index 897849ff8d..0000000000 --- a/java/sca/samples/chat2-webapp/src/main/webapp/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - \ No newline at end of file diff --git a/java/sca/samples/chat2-webapp/src/main/webapp/WEB-INF/web.xml b/java/sca/samples/chat2-webapp/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 6919372e87..0000000000 --- a/java/sca/samples/chat2-webapp/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - Apache Tuscany AJAX/DWR Chat Sample - - - tuscany - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany - /* - - - - chat.jsp - - - diff --git a/java/sca/samples/chat2-webapp/src/main/webapp/chat.html b/java/sca/samples/chat2-webapp/src/main/webapp/chat.html deleted file mode 100644 index a063e27f8e..0000000000 --- a/java/sca/samples/chat2-webapp/src/main/webapp/chat.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - Apache Tuscany Ajax/DWR Chat Sample - - - - - - -

Apache Tuscany Ajax/DWR Chat Sample

- - A simple client to chat between multiple web browsers:

- - Nickname: -

- - Enter text: - - -

-
- - - -- cgit v1.2.3