From bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a Mon Sep 17 00:00:00 2001 From: dims Date: Tue, 17 Jun 2008 00:23:01 +0000 Subject: Move Tuscany from Incubator to top level. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/sca/samples/RubyCalculator/README.html | 187 +++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 cpp/sca/samples/RubyCalculator/README.html (limited to 'cpp/sca/samples/RubyCalculator/README.html') diff --git a/cpp/sca/samples/RubyCalculator/README.html b/cpp/sca/samples/RubyCalculator/README.html new file mode 100644 index 0000000000..bb6fe7e0ea --- /dev/null +++ b/cpp/sca/samples/RubyCalculator/README.html @@ -0,0 +1,187 @@ + + + + + + + + + + + + Tuscany SCA Native Samples - Ruby Calculator Sample + + + +
+
+
+

Tuscany SCA Native Samples - Ruby Calculator Sample

+ +

This is a very simple sample to show how an SCA composite can wire + together two Ruby components to implement a Calculator service and invoke + the service via a local client. +

+

There are two sub projects in this workspace:

+
    +
  • sample.calculator
    + This contains the Ruby scripts and SCDL artifacts for the SCA Calculator + composite implementing the sample Calculator. +
  • +
  • sample.calculator.client
    + A sample client which does a local call to the Calculator service. +
  • +
+

Additionally, there is the sample.calculator.app.composite file. This + describes the configuration of the SCA Calculator composite deployed to the SCA + runtime. +

+
+ + + + +
+

Building the Ruby samples on Linux and Mac OS X

+

If using the binary distribution the samples are built and installed in + <tuscany_sca_install_dir>/samples - go directly to Running the samples on Linux and Mac OS X.

+
    +
  1. The following environment variables are required: +
      +
    • TUSCANY_SCACPP=<path to installed Tuscany SCA>
    • +
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
    • +
  2. + +
  3. As the Ruby Calculator sample is based on Ruby scripts, a specific compilation step is not necessary - + only deployment is required. Deploy the Ruby samples only with the following command sequence: +
      +
    • cd <tuscany_sca_install_dir>/samples
    • +
    • ./configure --enable-ruby --enable-cpp=no --prefix=$TUSCANY_SCACPP/samples
    • +
    • make install
    • +
    + NOTE: If you don't provide the --prefix configure option, it will by default install into + /usr/local/tuscany/sca/samples/RubyCalculator
  4. +
+
+ +
+

Running the Ruby Calculator sample on Linux and Mac OS X

+
    +
  1. The Ruby Calculator sample requires the following extension: + + Please follow the documentation to ensure you have this extension built and installed + on your system +
  2. + +
  3. The following environment variables are required: +
      +
    • TUSCANY_SCACPP=<path to installed Tuscany SCA>
    • +
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
    • +
    +
  4. +
  5. Run the sample with the following commands: +
      +
    • cd <tuscany_sca_install_dir>/samples/RubyCalculator/deploy/sample.calculator.client
    • +
    • ./runclient.sh
    • +
    +
  6. +
+
+ +
+

Building the Ruby Calculator sample on Windows

+

If using the binary distribution the samples are built and installed in + <tuscany_sca_install_dir>\samples - go directly to Running the samples on Windows.

+
    +
  1. The following environment variables are required: +
      +
    • TUSCANY_SCACPP=<path to installed Tuscany SCA>
    • +
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
    • +
    +
  2. +
  3. As this sample is based on Ruby scripts, a specific compilation step is not necessary - + only deployment is required. Deploy the sample with the following commands: +
      +
    • cd <tuscany_sca_install_dir>\samples\RubyCalculator
    • +
    • deploy.bat
    • +
    +
  4. +
+
+ +
+

Running the Ruby Calculator sample on Windows

+
    +
  1. The Ruby Calculator sample requires the following extension: + + Please follow the documentation to ensure you have this extension built and installed + on your system +
  2. +
  3. The following environment variables are required: +
      +
    • TUSCANY_SCACPP=<path to installed Tuscany SCA>
    • +
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
    • +
    +
  4. +
  5. Run the sample with the following commands: +
      +
    • cd <tuscany_sca_install_dir>\samples\RubyCalculator\deploy\sample.calculator.client
    • +
    • runclient.bat
    • +
    +
  6. +
+
+ +
+

Getting Help

+ +

The first place to look is at the Tuscany SCA FAQ at + http://cwiki.apache.org/confluence/display/TUSCANY/Tuscany+SCA+-+FAQ

+ +

Any problem with this release can be reported to the Tuscany + mailing lists or create a JIRA issue at http://issues.apache.org/jira/browse/Tuscany.

+ +
+
+
+ + + + -- cgit v1.2.3