You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2006/11/01 09:09:29 UTC
svn commit: r469811 - in
/incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback:
./ pom.xml readme.html src/
Author: antelder
Date: Wed Nov 1 00:09:28 2006
New Revision: 469811
URL: http://svn.apache.org/viewvc?view=rev&rev=469811
Log:
Copy over the async simplecallback sample from trunk to M2, update it for M2, and add a readme
Added:
incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/
- copied from r469280, incubator/tuscany/java/samples/sca/simplecallback/
incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/pom.xml
- copied, changed from r469792, incubator/tuscany/java/samples/sca/simplecallback/pom.xml
incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/readme.html
incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/src/
- copied from r469792, incubator/tuscany/java/samples/sca/simplecallback/src/
Copied: incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/pom.xml (from r469792, incubator/tuscany/java/samples/sca/simplecallback/pom.xml)
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/pom.xml?view=diff&rev=469811&p1=incubator/tuscany/java/samples/sca/simplecallback/pom.xml&r1=469792&p2=incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/pom.xml&r2=469811
==============================================================================
--- incubator/tuscany/java/samples/sca/simplecallback/pom.xml (original)
+++ incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/pom.xml Wed Nov 1 00:09:28 2006
@@ -19,9 +19,9 @@
-->
<project>
<parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
+ <groupId>org.apache.tuscany.sca.samples</groupId>
<artifactId>parent</artifactId>
- <version>1.0-incubator-SNAPSHOT</version>
+ <version>1.0-incubator-M2-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>sample-simplecallback</artifactId>
@@ -37,12 +37,12 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
<artifactId>test</artifactId>
- <version>${tuscanyVersion}</version>
- <scope>test</scope>
</dependency>
</dependencies>
<build>
+ <defaultGoal>package</defaultGoal>
+ <finalName>${artifactId}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Added: incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/readme.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/readme.html?view=auto&rev=469811
==============================================================================
--- incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/readme.html (added)
+++ incubator/tuscany/branches/sca-java-M2/samples/standalone/simplecallback/readme.html Wed Nov 1 00:09:28 2006
@@ -0,0 +1,101 @@
+<!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 Callback 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 Callback Sample</h3>
+
+ <h4>Overview</h4>
+
+ <p>The Tuscany Simple Callback sample shows ...</p>
+
+ <h4>Location</h4>
+
+ <p>This sample is located in the
+ samples\standalone\simplecallback 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 issue :</p>
+ <pre>
+<code>mvn<br></code>
+</pre>
+
+ <p>The result after executing is in the <span style=
+ "font-weight: bold;">target</span> subdirectory the <span style=
+ "font-weight: bold;">sample-simplecallback.jar</span></p>
+
+ <h4>Setup</h4>
+
+ <p>Set up the Tuscany standalone runtime environment using the
+ following command:</p>
+ <pre>
+<code>mvn dependency:unpack <br></code>
+</pre>
+
+ <p>After completion there should be a <span style=
+ "font-weight: bold;">target\distribution</span> subdirectory
+ created that has the Tuscany standalone runtime.</p>
+
+ <h4>Running</h4>
+
+ <p>Execute the following command: (<span style=
+ "font-style: italic;">cut and paste to command line</span>)</p>
+ <pre>
+<code>java -jar target/distribution/bin/launcher.jar target/sample-simplecallback.jar</code>
+</pre>
+
+ <h4>Results</h4>
+
+ <p>The sample when run should simply display to the standard
+ output:<br>
+<samp>
+<br>Main thread Thread[main,5,main]
+<br>Work thread Thread[pool-1-thread-1,5,main]
+<br>Result: -> someMethod -> receiveResult
+</samp>
+</p>
+</body>
+</html>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org