From 76e090f70f46fa6a09f5ddf6246d30dc7646ca91 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 19 Apr 2010 15:40:40 +0000 Subject: Delete javase test client as there's now the sample helloworld-scaclient which does the same thing git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@935627 13f79535-47bb-0310-9956-ffa450edef68 --- .../testing/helloworld-scaclient-javase/pom.xml | 44 ---------------------- .../src/main/java/testing/HelloworldClient.java | 43 --------------------- .../src/main/java/testing/HelloworldService.java | 28 -------------- .../trunk/distribution/tomcat/testing/pom.xml | 1 - 4 files changed, 116 deletions(-) delete mode 100644 sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/pom.xml delete mode 100644 sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/src/main/java/testing/HelloworldClient.java delete mode 100644 sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/src/main/java/testing/HelloworldService.java (limited to 'sca-java-2.x/trunk/distribution/tomcat') diff --git a/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/pom.xml b/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/pom.xml deleted file mode 100644 index 39c6bb2b59..0000000000 --- a/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/pom.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-distribution-tomcat-testing - 2.0-SNAPSHOT - ../pom.xml - - - helloworld-scaclient-javase - Apache Tuscany SCA Tomcat Integration Testing Helloworld Java SE SCAClient - - - - org.apache.tuscany.sca.shades - tuscany-base-nodep - 2.0-SNAPSHOT - - - - - - ${artifactId} - - diff --git a/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/src/main/java/testing/HelloworldClient.java b/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/src/main/java/testing/HelloworldClient.java deleted file mode 100644 index b36fe418a4..0000000000 --- a/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/src/main/java/testing/HelloworldClient.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 testing; - -import java.net.URI; - -import org.oasisopen.sca.NoSuchDomainException; -import org.oasisopen.sca.NoSuchServiceException; -import org.oasisopen.sca.client.SCAClientFactory; - - -public class HelloworldClient { - - public static void main(String[] args) throws NoSuchDomainException, NoSuchServiceException { - - URI domainURI ; - if (args.length > 0) { - domainURI = URI.create(args[0]); - } else { - domainURI = URI.create("tuscany:default?remotes=192.168.1.73:14820"); - } - - SCAClientFactory factory = SCAClientFactory.newInstance(domainURI); - HelloworldService service = factory.getService(HelloworldService.class, "HelloworldComponent"); - System.out.println(service.sayHello("world")); - } -} diff --git a/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/src/main/java/testing/HelloworldService.java b/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/src/main/java/testing/HelloworldService.java deleted file mode 100644 index b035a772be..0000000000 --- a/sca-java-2.x/trunk/distribution/tomcat/testing/helloworld-scaclient-javase/src/main/java/testing/HelloworldService.java +++ /dev/null @@ -1,28 +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 testing; - -import org.oasisopen.sca.annotation.Remotable; - -@Remotable -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/trunk/distribution/tomcat/testing/pom.xml b/sca-java-2.x/trunk/distribution/tomcat/testing/pom.xml index 2d57bf9a55..d77f0e8b3c 100644 --- a/sca-java-2.x/trunk/distribution/tomcat/testing/pom.xml +++ b/sca-java-2.x/trunk/distribution/tomcat/testing/pom.xml @@ -33,7 +33,6 @@ helloworld-service-contribution helloworld-reference-contribution - helloworld-scaclient-javase helloworld-scaclient-jsp helloworld-scaclient-servlet helloworld-client-webapp -- cgit v1.2.3