apache-tuscany/sandbox/sebastien/java/shell/samples/launcher-shell
2010-09-08 00:02:05 +00:00
..
scripts Change uri parameter to location of deployment composite and make it optional. Change restart command to use previous config if not specified. 2010-09-08 00:02:05 +00:00
src/main Change uri parameter to location of deployment composite and make it optional. Change restart command to use previous config if not specified. 2010-09-08 00:02:05 +00:00
pom.xml Sandbox to experiment with deployment and management commands. 2010-09-07 23:52:54 +00:00
README Sandbox to experiment with deployment and management commands. 2010-09-07 23:52:54 +00:00
sca Sandbox to experiment with deployment and management commands. 2010-09-07 23:52:54 +00:00

Sample Tuscany Shell
====================

This directory contains a sample shell program supporting simple commands to
start and stop SCA composites.

To build the sample shell do this:
mvn install

To run it:
./sca

at the prompt:
start myNode mySampleContrib ../contribution-implementation-java-calculator/target/classes

or:
start myNode mySampleContrib http://people.apache.org/~jsdelfino/tuscany/java/test/sample-contribution-binding-ws-calculator.jar

also try:
status
stop myNode
bye

Starting and stopping composites is pretty fast. To see that, try the following
two scripts, which start/stop a sample composite 10 times.

./sca <scripts/test.txt
or
./sca <scripts/test-remote.txt

The shell can also run as a Webapp. To try it install target/scashell.war in
a Web container, point your Web browser to http://localhost:8080/scashell
and try the links on that page.