From 3caf8614f25d6b1962e20331fdf423c863bc02f3 Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:13:31 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835144 13f79535-47bb-0310-9956-ffa450edef68 --- .../samples/sca/calculator/readme.html | 103 +++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 sca-java-1.x/branches/sca-java-integration/samples/sca/calculator/readme.html (limited to 'sca-java-1.x/branches/sca-java-integration/samples/sca/calculator/readme.html') diff --git a/sca-java-1.x/branches/sca-java-integration/samples/sca/calculator/readme.html b/sca-java-1.x/branches/sca-java-integration/samples/sca/calculator/readme.html new file mode 100644 index 0000000000..5d4e2cfcfb --- /dev/null +++ b/sca-java-1.x/branches/sca-java-integration/samples/sca/calculator/readme.html @@ -0,0 +1,103 @@ + + + + + + + + + Tuscany Simple Calculator Sample + + + + + +

Tuscany Simple Calculator Sample

+ +

Overview

+ +

This sample illustrates the use of SCA to wire components together inside a composite. +All connections between the components are local and are defined using Java interfaces.

+ +

Location

+ +

This sample is located  in the + samples\standalone\calculator 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-calculator.jar

+ +

Setup

+ +

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.

+ +

Running

+ +

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

+
+java -jar target/distribution/bin/launcher.jar target/sample-calculator.jar
+
+ +

Results

+ +

The sample when run should simply display to the standard + output:
+ +
3 + 2=5.0 +
3 - 2=1.0 +
3 * 2=6.0 +
3 / 2=1.5 +
+

+ + -- cgit v1.2.3