summaryrefslogtreecommitdiffstats
path: root/tags/java/sca/core-samples/2.0-alpha-incubating/standalone/calculator/readme.html
diff options
context:
space:
mode:
Diffstat (limited to 'tags/java/sca/core-samples/2.0-alpha-incubating/standalone/calculator/readme.html')
-rw-r--r--tags/java/sca/core-samples/2.0-alpha-incubating/standalone/calculator/readme.html88
1 files changed, 88 insertions, 0 deletions
diff --git a/tags/java/sca/core-samples/2.0-alpha-incubating/standalone/calculator/readme.html b/tags/java/sca/core-samples/2.0-alpha-incubating/standalone/calculator/readme.html
new file mode 100644
index 0000000000..cca5c1a032
--- /dev/null
+++ b/tags/java/sca/core-samples/2.0-alpha-incubating/standalone/calculator/readme.html
@@ -0,0 +1,88 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<!--
+ * 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.
+-->
+
+<html>
+<head>
+ <meta http-equiv="Content-Type" content=
+ "text/html; charset=us-ascii">
+ <meta http-equiv="Content-Style-Type" content="text/css">
+
+ <title>Tuscany Simple Calculator Sample</title>
+ <!-- LINK rel="stylesheet" href="ait.css" type="text/css" -->
+ <link rel="stylesheet" href="../../css/base.css" type="text/css">
+</head>
+
+<body>
+ <h3>Tuscany Simple Calculator Sample</h3>
+
+ <h4>Overview</h4>
+
+ <p>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.</p>
+
+ <h4>Location</h4>
+
+ <p>This sample is located &nbsp;in the
+ samples\standalone\calculator directory. All the
+ following commands should be issued while working in the sample
+ directory.</p>
+
+ <h4>Prerequisites</h4>
+
+ <p>Obtain the following prerequisites and install according to
+ their documentation.</p>
+
+ <ul>
+ <li><a href="http://java.sun.com/javase/downloads/index.jsp"
+ target="_blank">JDK 5.0</a></li>
+
+ <li><a href="http://maven.apache.org/download.html" target=
+ "_blank">Maven 2.0.4</a></li>
+ </ul>
+
+ <h4>Building</h4>
+
+ <p>To build the sample&nbsp; issue :</p>
+ <pre>
+<code>mvn install<br></code>
+</pre>
+
+ <h4>Setup</h4>
+
+ <h4>Running</h4>
+
+ <p>Boot the Tuscany standalone runtime environment using the
+ following command:</p>
+ <pre>
+<code>java -jar {path-to-launcher.jar} target/calc.jar {add|subtract|multiply|divide} {param} {param}<br></code>
+</pre>
+
+ <p>where {path-to-launcher.jar} is the path to the Tuscany launcher jar </p>
+
+ <pre>
+
+ <p>The sample when run should simply display to the standard
+ output:<br>
+<samp>
+<br>result = {result}
+</samp>
+</p>
+</body>
+</html>