Author: slaws
Date: Tue Feb 23 15:13:32 2010
New Revision: 915372

URL: http://svn.apache.org/viewvc?rev=915372&view=rev
Log:
TUSCANY-3473 - add new contribution to test for the case where a local call 
(local interface) is used within a contribution but where the hazelcast 
registry is in operation

Added:
    tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/pom.xml   
(with props)
    tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java
   (with props)
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java
   (with props)
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java
   (with props)
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml
   (with props)
    
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite
   (with props)

Added: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/pom.xml
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/pom.xml?rev=915372&view=auto
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/pom.xml 
(added)
+++ 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/pom.xml 
Tue Feb 23 15:13:32 2010
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * 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.    
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-itest</artifactId>
+        <version>2.0-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    <artifactId>itest-nodes-helloworld-service-and-client</artifactId>
+    <name>Apache Tuscany SCA iTest Nodes Helloworld Service and Client</name>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-sca-api</artifactId>
+            <version>2.0-SNAPSHOT</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-sca-api</artifactId>
+            <version>2.0-SNAPSHOT</version>
+        </dependency>
+    </dependencies>
+</project>

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java?rev=915372&view=auto
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java
 (added)
+++ 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java
 Tue Feb 23 15:13:32 2010
@@ -0,0 +1,26 @@
+/*
+ * 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 itest.nodes.sac;
+
+public interface Helloworld {
+    
+    String sayHello(String name) throws Exception;
+
+}

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/Helloworld.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java?rev=915372&view=auto
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java
 (added)
+++ 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java
 Tue Feb 23 15:13:32 2010
@@ -0,0 +1,34 @@
+/*
+ * 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 itest.nodes.sac;
+
+import org.oasisopen.sca.annotation.Reference;
+
+public class HelloworldClientImpl implements Helloworld {
+
+    @Reference
+    public Helloworld service;
+    
+    
+    public String sayHello(String name) throws Exception {
+        return "Hi " + service.sayHello(name);
+    }
+
+}

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldClientImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java?rev=915372&view=auto
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java
 (added)
+++ 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java
 Tue Feb 23 15:13:32 2010
@@ -0,0 +1,30 @@
+/*
+ * 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 itest.nodes.sac;
+
+public class HelloworldServiceImpl implements Helloworld {
+
+    public String sayHello(String name) {
+        String response = "Hello " + name;
+        System.out.println("At service - " + response);
+        return response;
+    }
+
+}

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/java/itest/nodes/sac/HelloworldServiceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml?rev=915372&view=auto
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml
 (added)
+++ 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml
 Tue Feb 23 15:13:32 2010
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * 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.    
+-->
+<contribution xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912";
+              xmlns:itest="http://itest";>
+   <deployable composite="itest:HelloworldServiceAndClient"/>
+</contribution>
\ No newline at end of file

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/META-INF/sca-contribution.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite
URL: 
http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite?rev=915372&view=auto
==============================================================================
--- 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite
 (added)
+++ 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite
 Tue Feb 23 15:13:32 2010
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912";
+       targetNamespace="http://itest";
+       name="HelloworldServiceAndClient">
+    
+    <component name="HelloworldClient">
+       <implementation.java class="itest.nodes.sac.HelloworldClientImpl"/>
+       <reference name="service" target="HelloworldService"/>       
+    </component>     
+             
+    <component name="HelloworldService">
+       <implementation.java class="itest.nodes.sac.HelloworldServiceImpl"/>
+    </component>   
+    
+</composite>

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: 
tuscany/sca-java-2.x/trunk/itest/nodes/helloworld-service-and-client/src/main/resources/helloworld-service.composite
------------------------------------------------------------------------------
    svn:mime-type = text/xml


Reply via email to