This sample illustrates the use of SCA to wire components together inside a composite. All connections between the components are local and are defined using Java interfaces.
This sample is located in the samples\standalone\calculator directory. All the following commands should be issued while working in the sample directory.
Obtain the following prerequisites and install according to their documentation.
To build the sample issue :
mvn install
Boot the Tuscany standalone runtime environment using the following command:
java -jar {path-to-launcher.jar} target/calc.jar {add|subtract|multiply|divide} {param} {param}
where {path-to-launcher.jar} is the path to the Tuscany launcher jar
The sample when run should simply display to the standard output:
result = {result}