diff options
author | kelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-14 13:37:53 +0000 |
---|---|---|
committer | kelvingoodson <kelvingoodson@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-14 13:37:53 +0000 |
commit | a799bd1b828dcf0077832ec0f9a306a59031856f (patch) | |
tree | b4c66ccd42e36a6e07cd8aa1f85a9c47dbe70f74 /sca-java-2.x/trunk/samples/running-tuscany/launcher-webapp/README | |
parent | 42ee19f055d31f63e4f073cd273a95c6b06123b5 (diff) |
TUSCANY-3677 move launchers into running-tuscany folder
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@996894 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples/running-tuscany/launcher-webapp/README')
-rw-r--r-- | sca-java-2.x/trunk/samples/running-tuscany/launcher-webapp/README | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/samples/running-tuscany/launcher-webapp/README b/sca-java-2.x/trunk/samples/running-tuscany/launcher-webapp/README new file mode 100644 index 0000000000..4031b9c0bd --- /dev/null +++ b/sca-java-2.x/trunk/samples/running-tuscany/launcher-webapp/README @@ -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/
|