summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/README
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-03-29 14:11:52 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-03-29 14:11:52 +0000
commitfd6b66c453e097a63450b1c52fa9c01bdcf21c22 (patch)
tree5c91f5d6229220fdba31afbe25b3371be39dbbb9 /sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/README
parenta9a436854e4a02b1fb8c8e73083e242abf507195 (diff)
Copy the getting started webapp sample to trunk samples
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1086589 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/README28
1 files changed, 28 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/README b/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/README
new file mode 100644
index 0000000000..7a7f9511ae
--- /dev/null
+++ b/sca-java-2.x/trunk/samples/getting-started/helloworld-webapp/README
@@ -0,0 +1,28 @@
+Tuscany - Getting Started - Helloworld WebApp Sample
+----------------------------------------------------
+
+This sample demonstrates how to use SCA contributions with Web Applications
+
+See the README in the top-level samples folder for general information on the Tuscany samples.
+
+This sample project creates a .war web application which includes Tuscany. The SCA contribution
+from the helloworld sample is included within the war and its SCA composite started by the webapp,
+and there is a JSP page which shows how to invoke SCA services by using the SCA taglib.
+
+As this sample creates a web application .war archive there is a manual step to deploy the WAR file
+to your web application server. The archive is the helloworld-webapp-<version>.war in the target folder.
+Alternatively, you can run it by using the Maven Tomcat plugin by using the following command:
+
+ mvn tomcat:run
+
+Once the web app is running use your browser to visit the following URL;
+
+http://localhost:8080/helloworld-webapp
+
+(The port and hostname will of course vary depending on your local installation)
+
+You should then see web page return the following:
+
+ Calling HelloworldService sayHello("world") returns:
+
+ Hello world \ No newline at end of file