You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2010/08/17 12:09:14 UTC

svn commit: r986259 - in /tuscany/sca-java-2.x/trunk/samples/launcher-webapp: ./ README

Author: slaws
Date: Tue Aug 17 10:09:14 2010
New Revision: 986259

URL: http://svn.apache.org/viewvc?rev=986259&view=rev
Log:
Start of a general README for launching webapps with embedded Tuscany. I wanted to document Ant's commit comment about mvn jetty:run.

Added:
    tuscany/sca-java-2.x/trunk/samples/launcher-webapp/
    tuscany/sca-java-2.x/trunk/samples/launcher-webapp/README

Added: tuscany/sca-java-2.x/trunk/samples/launcher-webapp/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/samples/launcher-webapp/README?rev=986259&view=auto
==============================================================================
--- tuscany/sca-java-2.x/trunk/samples/launcher-webapp/README (added)
+++ tuscany/sca-java-2.x/trunk/samples/launcher-webapp/README Tue Aug 17 10:09:14 2010
@@ -0,0 +1,29 @@
+To execute sample webapp based contributions (contributions that have webapp at the end of their name) you
+can build the contribution using maven and then copy the resulting war file to your container of choice
+
+For example, for binding-jsonrpc/contribution-calculator-webapp, do the following
+
+cd samples/binding-jsonrpc/contribution-calculator-webapp
+mvn 
+cp target/sample-contribution-binding-jsonrpc-calculator-webapp.war your_container_deployment-dir
+
+
+As an alternative sample webapp based contributions can be run within Jetty directly from Maven, look for 
+webapp contributions that have the following configuration in their pom.xml file:
+
+<plugin>
+    <groupId>org.mortbay.jetty</groupId>
+    <artifactId>maven-jetty-plugin</artifactId>
+    <version>6.1.18</version>
+</plugin>
+
+For contributions that have this, for example, binding-jsonrpc/contribution-calculator-webapp, do the following
+
+cd samples/binding-sca/contribution-calculator
+mvn jetty:run
+
+This will launch the contribution in the Jetty runtime and then wait. At this point you can use
+HTTP clients to send messages to services that the running SCA applcation exposes. For this 
+example try pointing your browser at:
+
+http://localhost:8080/sample-contribution-binding-jsonrpc-calculator-webapp/