summaryrefslogtreecommitdiffstats
path: root/sandbox/sebastien/java/dynamic/samples/launcher-shell/README
blob: abdf82462122f175a64c6478b025e5b9ff237797 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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.