This sample illustrates the use of an extension to support implementation types other than Java. In this sample the component is implemented using a Ruby script.
This sample is located in the samples\standalone\helloworldRuby 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
The result after executing is in the target subdirectory the sample-helloworld-ruby.jar
Set up the Tuscany standalone runtime environment using the following command:
mvn dependency:unpack
After completion there should be a target\distribution subdirectory created that has the Tuscany standalone runtime.
The Tuscany Ruby implementation requires the Ruby extension so you need to copy this to the standalone launcher extensions directory:
copy target\distribution\contrib\ruby-1.0-incubator-M2.jar target\distribution\extensions
Execute the following command: (cut and paste to command line)
java -jar target/distribution/bin/launcher.jar target/sample-helloworld-ruby.jar Petra
The sample when run should simply display to the standard
output:
Hello to Petra from the Ruby World!