From 6d0e93c68d3aeaeb4bb6d96ac0460eec40ef786e Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:13:23 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835143 13f79535-47bb-0310-9956-ffa450edef68 --- .../helloworldwsclient-async/readme.html | 131 +++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 sca-java-1.x/branches/sca-java-M2/samples/standalone/helloworldwsclient-async/readme.html (limited to 'sca-java-1.x/branches/sca-java-M2/samples/standalone/helloworldwsclient-async/readme.html') diff --git a/sca-java-1.x/branches/sca-java-M2/samples/standalone/helloworldwsclient-async/readme.html b/sca-java-1.x/branches/sca-java-M2/samples/standalone/helloworldwsclient-async/readme.html new file mode 100644 index 0000000000..163d8b16a2 --- /dev/null +++ b/sca-java-1.x/branches/sca-java-M2/samples/standalone/helloworldwsclient-async/readme.html @@ -0,0 +1,131 @@ + + + + + + + + + Tuscany Hello World Async Client Sample + + + + + +

Tuscany Hello World Async Client Sample

+ +

Overview

+ +

The Tuscany helloworld sample shows using the Tuscany SCA runtime in a J2SE environment  loading a component client that + performs an asynchronous web service call with callback. The client uses a bi-directional (asynchronous) interface + that is supported by the web services binding (binding.ws) that it specifies. The component definition is given + implicitly by the Java code and the use of the @Callback annotation.

+ +

Location

+ +

This sample is located  in the + samples\standalone\helloworldwsclient-async directory. All the + following commands should be issued while working in the sample + directory.

+ +

Prerequisites

+ +

Obtain the following prerequisites and install according to + their documentation.

+ + + +

Building

+ +

To build the sample  issue :

+
+mvn
+
+ +

The result after executing is in the target subdirectory the sample-helloworldwsclient-async-1.0-incubator-M2.jar

+ +

Setup

+ +

This sample depends on the Tuscany Hello World Async WS sample already running to + execute successfully

+ +

Set up the Tuscany standalone runtime environment using the + following command:

+
+mvn dependency:unpack 
+
+ +

After completion there should be a target\distribution subdirectory + created that has the Tuscany standalone runtime.

+ +

Each sample can require one or more Tuscany runtime + extensions. For this sample copy from target\distribution\contrib to the + target\distribution\extensions + directory the following extensions:

+ + + + + + + + + + + + + + + +
axis2-1.0-incubator-M2.jarAxis webservices binding
databinding-sdo-1.0-incubator-M2.jarSDO data biinding.
+ +

Running

+ +

Execute the following command: (cut and paste to command line)

+
+java -jar target/distribution/bin/launcher.jar target/sample-helloworldwsclient-async-1.0-incubator-M2.jar
+
+ +

Results

+ +

The sample when run should simply display to the standard + output:
+ Hello John

+ + -- cgit v1.2.3