From e5b7380c874745c989d1816b8f552504f038e1bc Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 26 Sep 2013 20:33:20 +0000 Subject: 2.0 branch for possible maintenance release git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1526672 13f79535-47bb-0310-9956-ffa450edef68 --- .../getting-started/helloworld-webapp/README | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 sca-java-2.x/branches/2.0/samples/getting-started/helloworld-webapp/README (limited to 'sca-java-2.x/branches/2.0/samples/getting-started/helloworld-webapp/README') diff --git a/sca-java-2.x/branches/2.0/samples/getting-started/helloworld-webapp/README b/sca-java-2.x/branches/2.0/samples/getting-started/helloworld-webapp/README new file mode 100644 index 0000000000..bcf11d9886 --- /dev/null +++ b/sca-java-2.x/branches/2.0/samples/getting-started/helloworld-webapp/README @@ -0,0 +1,32 @@ +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-.war in the target folder. +Alternatively, you can run it by using the Maven Tomcat plugin by using the following command: + + mvn tomcat:run + +or if you prefer Jetty then: + + mvn jetty: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 the web page return the following: + + Calling HelloworldService sayHello("world") returns: + + Hello world \ No newline at end of file -- cgit v1.2.3