From 6ddce1972d933cc85a4f19a8d73985f2cda54011 Mon Sep 17 00:00:00 2001 From: lresende Date: Thu, 19 Nov 2009 17:58:47 +0000 Subject: Removing obsolete release candidate tag git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882226 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/samples/RubyCalculator/README.html | 253 --------------------- 1 file changed, 253 deletions(-) delete mode 100644 tags/cpp-1.0-incubating-M2-RC2/sca/samples/RubyCalculator/README.html (limited to 'tags/cpp-1.0-incubating-M2-RC2/sca/samples/RubyCalculator/README.html') diff --git a/tags/cpp-1.0-incubating-M2-RC2/sca/samples/RubyCalculator/README.html b/tags/cpp-1.0-incubating-M2-RC2/sca/samples/RubyCalculator/README.html deleted file mode 100644 index ab9829741a..0000000000 --- a/tags/cpp-1.0-incubating-M2-RC2/sca/samples/RubyCalculator/README.html +++ /dev/null @@ -1,253 +0,0 @@ - - - - - - - - - - - - Tuscany SCA for C++ Samples - RubyCalculator Sample - - - -
-
-
-

Tuscany SCA for C++ Samples - RubyCalculator 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 expose - that service as a Web Service. -

-

There are three 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. -
  • -
  • sample.calculator.wsclient
    - A sample client which does a local call to a composite that contains a Web Service reference - that calls the Calculator Web Service. -
  • -
-

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

-
- - - - -
-

Building the Ruby samples on Linux

-

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.

-
    -
  1. The following environment variables are required: -
      -
    • TUSCANY_SCACPP=<path to installed Tuscany SCA> -
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO> -
    • AXIS2C_HOME=<path to axis2c version 0.94>
    • -
  2. - -
  3. As the RubyCalculator 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
    • -
    • 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 RubyCalculator sample on Linux

-

RubyCalculator with basic client

-
    -
  1. The following environment variables are required: -
      -
    • TUSCANY_SCACPP=<path to installed Tuscany SCA>
    • -
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
    • -
    • AXIS2C_HOME=<path to axis2c version 0.94>
    • -
    -
  2. -
  3. Run the sample with the following commands: -
      -
    • cd <tuscany_sca_install_dir>/samples/RubyCalculator/deploy/sample.calculator.client
    • -
    • ./runclient.sh
    • -
    -
  4. -
-

RubyCalculator with Web Service client

-
    -
  1. Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions - found here. -
  2. -
  3. Start the Axis2C simple http server: -
      -
    1. The following environment variables are required: -
        -
      • TUSCANY_SCACPP=<path to installed Tuscany SCA>
      • -
      • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
      • -
      • AXIS2C_HOME=<path to axis2c version 0.94>
      • -
      -
    2. -
    3. cd <tuscany_sca_install_dir>/samples/RubyCalculator/deploy/sample.calculator
    4. -
    5. ./runwsserver.sh
    6. -
    -
  4. -
  5. Run the client: -
      -
    1. The following environment variable is required: -
        -
      • AXIS2C_HOME=<path to axis2c version 0.94>
      • -
      -
    2. -
    3. cd <tuscany_sca_install_dir>/samples/RubyCalculator/deploy/sample.calculator.wsclient
    4. -
    5. ./runwsclient.sh
    6. -
    -
  6. -
-
- -
-

Building the RubyCalculator 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> -
    • AXIS2C_HOME=<path to axis2c version 0.94>
    • -
  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.cmd
    • -
    -
  4. -
-
- -
-

Running the RubyCalculator sample on Windows

-

RubyCalculator with basic client

-
    -
  1. The following environment variables are required: -
      -
    • TUSCANY_SCACPP=<path to installed Tuscany SCA>
    • -
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
    • -
    • AXIS2C_HOME=<path to axis2c version 0.94>
    • -
    -
  2. -
  3. Run the sample with the following commands: -
      -
    • cd <tuscany_sca_install_dir>\samples\RubyCalculator\deploy\sample.calculator.client
    • -
    • runclient.bat
    • -
    -
  4. -
-

RubyCalculator with Web Service client

-
    -
  1. Ensure you have enabled Axis2C to run Tuscany SCA services. Follow the instructions - found here. -
  2. -
  3. Start the Axis2C simple http server: -
      -
    1. The following environment variables are required: -
        -
      • TUSCANY_SCACPP=<path to installed Tuscany SCA>
      • -
      • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
      • -
      • AXIS2C_HOME=<path to axis2c version 0.94>
      • -
      -
    2. -
    3. cd <tuscany_sca_install_dir>\samples\RubyCalculator\deploy\sample.calculator
    4. -
    5. runwsserver.bat
    6. -
    -
  4. -
  5. Run the client: -
      -
    1. The following environment variables are required: -
        -
      • TUSCANY_SCACPP=<path to installed Tuscany SCA>
      • -
      • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
      • -
      • AXIS2C_HOME=<path to axis2c version 0.94>
      • -
      -
    2. -
    3. cd <tuscany_sca_install_dir>\samples\RubyCalculator\deploy\sample.calculator.wsclient
    4. -
    5. runwsclient.bat
    6. -
    -
  6. -
-
- - - -
-

Getting Help

- -

First place to look is at the Tuscany FAQ at - http://incubator.apache.org/tuscany/faq.html

- -

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