From f592e57fb367ef298ed2b6df6b0251575be09d88 Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 17 Aug 2010 10:09:14 +0000 Subject: Start of a general README for launching webapps with embedded Tuscany. I wanted to document Ant's commit comment about mvn jetty:run. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@986259 13f79535-47bb-0310-9956-ffa450edef68 --- sca-java-2.x/trunk/samples/launcher-webapp/README | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sca-java-2.x/trunk/samples/launcher-webapp/README (limited to 'sca-java-2.x/trunk') diff --git a/sca-java-2.x/trunk/samples/launcher-webapp/README b/sca-java-2.x/trunk/samples/launcher-webapp/README new file mode 100644 index 0000000000..4031b9c0bd --- /dev/null +++ b/sca-java-2.x/trunk/samples/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: + + + org.mortbay.jetty + maven-jetty-plugin + 6.1.18 + + +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/ -- cgit v1.2.3