You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2006/10/06 02:30:16 UTC

svn commit: r453439 [1/3] - in /incubator/tuscany/java/samples/sca/helloworldwsclient-async: ./ src/ src/main/ src/main/java/ src/main/java/helloworld/ src/main/resources/ src/main/resources/META-INF/ src/main/resources/META-INF/sca/ src/main/resources...

Author: rfeng
Date: Thu Oct  5 17:30:14 2006
New Revision: 453439

URL: http://svn.apache.org/viewvc?view=rev&rev=453439
Log:
Add helloworld ws async client

Added:
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/pom.xml   (with props)
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/run.bat
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/run_celtix.bat
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldCallback.java   (with props)
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldClient.java   (with props)
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldLocal.java   (with props)
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldService.java   (with props)
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldServiceComponent.java   (with props)
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/resources/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/resources/META-INF/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/resources/META-INF/LICENSE.txt   (with props)
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/resources/META-INF/NOTICE
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/resources/META-INF/README.txt   (with props)
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/resources/META-INF/sca/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/resources/META-INF/sca/default.scdl
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/resources/logging.properties   (with props)
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/resources/wsdl/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/resources/wsdl/helloworld.wsdl
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/java/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/java/helloworld/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/java/helloworld/HelloWorldWSAsyncClient.java   (with props)
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/resources/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/resources/META-INF/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/resources/META-INF/tuscany/
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/resources/META-INF/tuscany/binding.axis2.scdl
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/resources/META-INF/tuscany/databinding.axiom.scdl
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/resources/META-INF/tuscany/databinding.sdo.scdl
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/resources/META-INF/tuscany/interface.wsdl.scdl
    incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/test/resources/META-INF/tuscany/test-extensions.scdl

Added: incubator/tuscany/java/samples/sca/helloworldwsclient-async/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldwsclient-async/pom.xml?view=auto&rev=453439
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldwsclient-async/pom.xml (added)
+++ incubator/tuscany/java/samples/sca/helloworldwsclient-async/pom.xml Thu Oct  5 17:30:14 2006
@@ -0,0 +1,108 @@
+<?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>
+    <parent>
+        <groupId>org.apache.tuscany.samples.sca</groupId>
+        <artifactId>parent</artifactId>
+        <version>1.0-incubator-M2-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+    <artifactId>sample-helloworldwsclient-async</artifactId>
+    <packaging>jar</packaging>
+    <name>Tuscany HelloWorld Web Service Async Client Sample</name>
+    <description>A sample client for a HelloWorld Web Service.</description>
+    <properties>
+        <ws.type>axis2</ws.type>
+    </properties>
+
+    <dependencies>
+    
+        <dependency>
+            <groupId>commonj</groupId>
+            <artifactId>sdo-api-r2.0.1</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.osoa</groupId>
+            <artifactId>sca-api-r0.95</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.sca.kernel</groupId>
+            <artifactId>tuscany-api</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>compile</scope> 
+        </dependency>    
+        <dependency>
+            <groupId>org.apache.tuscany.sca.kernel</groupId>
+            <artifactId>core</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.tuscany.sca.services.bindings</groupId>
+            <artifactId>axis2</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>test</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca.services.databinding</groupId>
+            <artifactId>databinding-sdo</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca.services.databinding</groupId>
+            <artifactId>databinding-axiom</artifactId>
+            <version>${tuscanyVersion}</version>
+            <scope>test</scope>
+        </dependency>
+                        
+    </dependencies>
+    
+     <build>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <mainClass>helloworld.HelloWorldClient</mainClass>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+    
+    
+</project>

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/samples/sca/helloworldwsclient-async/run.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldwsclient-async/run.bat?view=auto&rev=453439
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldwsclient-async/run.bat (added)
+++ incubator/tuscany/java/samples/sca/helloworldwsclient-async/run.bat Thu Oct  5 17:30:14 2006
@@ -0,0 +1,53 @@
+@echo off
+rem set java_debug_set=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=3720,server=y,suspend=y
+mkdir target\standalone
+pushd target\standalone
+jar -xf "%USERPROFILE%\.m2\repository\org\apache\tuscany\standalone\1.0-SNAPSHOT\standalone-1.0-SNAPSHOT-bin.zip" 
+popd
+rem move target\standalone\extension\axiom-api-1.0.jar target\standalone\boot
+rem move target\standalone\extension\axiom-impl-1.0.jar target\standalone\boot
+rem move target\standalone\extension\axis2-kernel-1.0.jar target\standalone\boot
+rem move target\standalone\extension\common-2.2.1-SNAPSHOT.jar target\standalone\boot
+rem move target\standalone\extension\commons-codec-1.3.jar target\standalone\boot
+rem move target\standalone\extension\commons-httpclient-3.0.jar target\standalone\boot
+rem move target\standalone\extension\ecore-2.2.1-SNAPSHOT.jar target\standalone\boot
+rem move target\standalone\extension\ecore-change-2.2.1-SNAPSHOT.jar target\standalone\boot
+rem move target\standalone\extension\ecore-xmi-2.2.1-SNAPSHOT.jar target\standalone\boot
+rem move target\standalone\extension\junit-3.8.1.jar target\standalone\boot
+rem move target\standalone\extension\neethi-1.0.1.jar target\standalone\boot
+rem move target\standalone\extension\sdo-api-1.0-SNAPSHOT.jar target\standalone\boot
+rem move target\standalone\extension\tuscany-sdo-impl-1.0-SNAPSHOT.jar target\standalone\boot
+rem move target\standalone\extension\XmlSchema-1.0.2.jar target\standalone\boot
+rem move target\standalone\extension\xsd-2.2.1-SNAPSHOT.jar target\standalone\boot
+rem move target\standalone\extension\wstx-asl-2.9.3.jar target\standalone\boot
+rem move target\standalone\extension\commons-logging-1.0.3.jar target\standalone\boot
+
+
+move target\standalone\extension\axiom-api-SNAPSHOT.jar  target\standalone\boot
+move target\standalone\extension\axiom-impl-SNAPSHOT.jar target\standalone\boot
+move target\standalone\extension\axis2-common-SNAPSHOT.jar  target\standalone\boot
+move target\standalone\extension\axis2-core-SNAPSHOT.jar target\standalone\boot 
+move target\standalone\extension\woden-SNAPSHOT.jar target\standalone\boot 
+move target\standalone\extension\wsdl-1.0-SNAPSHOT.jar target\standalone\boot 
+move target\standalone\extension\wsdl4j-1.5.2.jar target\standalone\boot 
+move target\standalone\extension\avalon-framework-4.1.3.jar target\standalone\boot
+move target\standalone\extension\common-2.2.1-SNAPSHOT.jar target\standalone\boot
+move target\standalone\extension\commons-codec-1.2.jar target\standalone\boot
+move target\standalone\extension\commons-httpclient-3.0.jar target\standalone\boot
+move target\standalone\extension\commons-logging-1.1.jar target\standalone\boot
+move target\standalone\extension\ecore-2.2.1-SNAPSHOT.jar target\standalone\boot
+move target\standalone\extension\ecore-change-2.2.1-SNAPSHOT.jar target\standalone\boot
+move target\standalone\extension\ecore-xmi-2.2.1-SNAPSHOT.jar target\standalone\boot
+move target\standalone\extension\junit-3.8.1.jar target\standalone\boot
+move target\standalone\extension\log4j-1.2.12.jar target\standalone\boot
+move target\standalone\extension\logkit-1.0.1.jar target\standalone\boot
+move target\standalone\extension\neethi-SNAPSHOT.jar target\standalone\boot
+move target\standalone\extension\sdo-api-1.0-SNAPSHOT.jar target\standalone\boot
+move target\standalone\extension\servlet-api-2.3.jar target\standalone\boot
+move target\standalone\extension\tuscany-sdo-impl-1.0-SNAPSHOT.jar target\standalone\boot
+move target\standalone\extension\XmlSchema-SNAPSHOT.jar target\standalone\boot
+move target\standalone\extension\xsd-2.2.1-SNAPSHOT.jar target\standalone\boot
+
+
+
+java %java_debug_set% -jar target\standalone\bin\launcher.jar  --classpath "%USERPROFILE%\.m2\repository\org\apache\tuscany\samples\sca\sample-helloworldwsclient\1.0-SNAPSHOT\sample-helloworldwsclient-1.0-SNAPSHOT.jar" %*

Added: incubator/tuscany/java/samples/sca/helloworldwsclient-async/run_celtix.bat
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldwsclient-async/run_celtix.bat?view=auto&rev=453439
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldwsclient-async/run_celtix.bat (added)
+++ incubator/tuscany/java/samples/sca/helloworldwsclient-async/run_celtix.bat Thu Oct  5 17:30:14 2006
@@ -0,0 +1,16 @@
+@echo off
+rem set java_debug_set=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=3720,server=y,suspend=y
+mkdir target\standalone
+pushd target\standalone
+jar -xf "%USERPROFILE%\.m2\repository\org\apache\tuscany\standalone\1.0-SNAPSHOT\standalone-1.0-SNAPSHOT-bin.zip" 
+jar -xf "%USERPROFILE%\.m2\repository\org\apache\tuscany\bindings\celtix\1.0-SNAPSHOT\celtix-1.0-SNAPSHOT-bin.zip" 
+rem jar -xf "%USERPROFILE%\.m2\repository\org\apache\tuscany\bindings\axis2\1.0-SNAPSHOT\axis2-1.0-SNAPSHOT-bin.zip" 
+
+popd
+move target\standalone\extension\*.jar target\standalone\boot
+copy "%USERPROFILE%\.m2\repository\org\apache\tuscany\bindings\celtix\1.0-SNAPSHOT\celtix-1.0-SNAPSHOT.jar" target\standalone\extension
+copy "%USERPROFILE%\.m2\repository\org\apache\tuscany\databinding\databinding-sdo\1.0-SNAPSHOT\databinding-sdo-1.0-SNAPSHOT.jar" target\standalone\extension
+rem copy "%USERPROFILE%\.m2\repository\org\apache\tuscany\bindings\axis2\1.0-SNAPSHOT\axis2-1.0-SNAPSHOT.jar" target\standalone\extension
+
+
+java %java_debug_set% -jar target\standalone\bin\launcher.jar  --classpath "%USERPROFILE%\.m2\repository\org\apache\tuscany\samples\sca\sample-helloworldwsclient\1.0-SNAPSHOT\sample-helloworldwsclient-1.0-SNAPSHOT.jar" %*

Added: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldCallback.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldCallback.java?view=auto&rev=453439
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldCallback.java (added)
+++ incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldCallback.java Thu Oct  5 17:30:14 2006
@@ -0,0 +1,27 @@
+/*
+ * 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 helloworld;
+
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+public interface HelloWorldCallback {
+
+    public void getGreetingsCallback(String getGreetingsReturn);
+}

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldCallback.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldCallback.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldClient.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldClient.java?view=auto&rev=453439
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldClient.java (added)
+++ incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldClient.java Thu Oct  5 17:30:14 2006
@@ -0,0 +1,76 @@
+/*
+ * 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 helloworld;
+
+import org.osoa.sca.CompositeContext;
+import org.osoa.sca.CurrentCompositeContext;
+
+
+
+//import org.osoa.sca.CurrentModuleContext;
+//import org.osoa.sca.ModuleContext;
+//
+//import org.apache.tuscany.core.client.TuscanyRuntime;
+//import org.apache.tuscany.common.monitor.MonitorFactory;
+//import org.apache.tuscany.common.monitor.impl.JavaLoggingMonitorFactory;
+
+/**
+ * This client program shows how to create an SCA runtime, start it,
+ * locate the HelloWorld service and invoke it.
+ */
+
+
+
+public class HelloWorldClient {
+   
+
+    public  final static void main(String[] args) throws Exception {
+        
+        // Setup Tuscany monitoring to use java.util.logging
+//        LogManager.getLogManager().readConfiguration(HelloWorldClient.class.getResourceAsStream("/logging.properties"));
+//        Properties levels = new Properties();
+//        MonitorFactory monitorFactory = new JavaLoggingMonitorFactory(levels, Level.FINEST, "MonitorMessages");
+
+        // Create a Tuscany runtime for the sample module component
+//        TuscanyRuntime tuscany = new TuscanyRuntime("HelloWorldModuleComponent", "http://helloworld", monitorFactory);
+
+        // Start the Tuscany runtime and associate it with this thread
+//        tuscany.start();
+
+        // Get the SCA module context.
+//        ModuleContext moduleContext = CurrentModuleContext.getContext();
+
+        // Locate the HelloWorld service
+//        HelloWorldService helloworldService = (HelloWorldService) moduleContext.locateService("HelloWorldService");
+        
+        // Invoke the HelloWorld service
+        CompositeContext compositeContext = CurrentCompositeContext.getContext();
+        HelloWorldService helloWorldService= compositeContext.locateService(HelloWorldService.class, "HelloWorldServiceComponent");
+        String value = helloWorldService.getGreetings("World");
+        
+        System.out.println(value);
+        System.out.flush();
+
+        // Disassociate the runtime from this thread
+//        tuscany.stop();
+
+        // Shut down the runtime
+//        tuscany.shutdown();
+    }
+}

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldClient.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldClient.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldLocal.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldLocal.java?view=auto&rev=453439
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldLocal.java (added)
+++ incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldLocal.java Thu Oct  5 17:30:14 2006
@@ -0,0 +1,33 @@
+/*
+ * 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 helloworld;
+
+import org.apache.tuscany.api.annotation.DataType;
+import org.osoa.sca.annotations.Service;
+
+import commonj.sdo.DataObject;
+
+@Service
+public interface HelloWorldLocal {
+
+    public String getGreetings(String name);
+    @DataType(name="commonj.sdo.DataObject")
+    public String getGreetings1(DataObject name);
+
+}

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldLocal.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldLocal.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldService.java?view=auto&rev=453439
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldService.java (added)
+++ incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldService.java Thu Oct  5 17:30:14 2006
@@ -0,0 +1,38 @@
+/*
+ * 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 helloworld;
+
+import org.apache.tuscany.api.annotation.DataType;
+import org.osoa.sca.annotations.Callback;
+import org.osoa.sca.annotations.Remotable;
+import org.osoa.sca.annotations.Service;
+
+import commonj.sdo.DataObject;
+
+@Remotable
+@Service
+@Callback(HelloWorldCallback.class)
+public interface HelloWorldService {
+
+    public String getGreetings(String name);
+    @DataType(name="commonj.sdo.DataObject")
+    public String getGreetings1(DataObject name);
+
+    public void getGreetingsWithCallback(String name);
+}

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldServiceComponent.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldServiceComponent.java?view=auto&rev=453439
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldServiceComponent.java (added)
+++ incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldServiceComponent.java Thu Oct  5 17:30:14 2006
@@ -0,0 +1,59 @@
+/*
+ * 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 helloworld;
+
+import org.osoa.sca.annotations.Scope;
+
+import commonj.sdo.DataObject;
+
+
+/**
+ * This client program shows how to create an SCA runtime, start it,
+ * locate the HelloWorld service and invoke it.
+ */
+
+
+@Scope("MODULE")
+public class HelloWorldServiceComponent implements HelloWorldLocal {
+   
+    HelloWorldService helloWorldService;
+
+    public String getGreetings(String name) {
+       
+        return helloWorldService.getGreetings(name);
+    }
+
+    public HelloWorldService getHelloWorldService() {
+        return helloWorldService;
+    }
+
+    public void setHelloWorldService(HelloWorldService helloWorldService) {
+        this.helloWorldService = helloWorldService;
+    }
+
+    public String getGreetings1(DataObject name) {
+        return helloWorldService.getGreetings1(name);
+    }
+    
+    public void getGreetingsCallback(String getGreetingsReturn) {
+        System.out.println("Callback: " + getGreetingsReturn);
+    }
+
+    
+}

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldServiceComponent.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/samples/sca/helloworldwsclient-async/src/main/java/helloworld/HelloWorldServiceComponent.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org