Tuscany - Getting Started - SCA C++ Milestone release 1

Tuscany SCA C++ provides a runtime implementation for the Service Component Architecture 0.9 specification, written in C++ and currently supports C++ component implementation types. This page describes what is needed to install and run Tuscany SCA for C++.
If you haven't already done so, the first step is to download the SCA C++ Milestone release 1 of Apache Tuscany from our download page.

System Requirements

In order to run Tuscany SCA there are some minimum requirements:

Software Download Link
Operating systems:
  • Windows XP SP2
  • Linux
Axis2C Release 0.92 http://ws.apache.org/axis2/c/download.cgi
Please download and follow the installation instructions. Ensure you can run the Axis2C samples
Tuscany SDO for C++ Milestone Release 1 http://incubator.apache.org/tuscany/download.html
Please download and follow the installation instructions
Java SDK 1.4 or later http://java.sun.com/javase/downloads/index.jsp
This is required for building and running the SCAGEN code generation tool, which is used when developing Tuscany SCA C++ components
Apache Ant 1.6 or later http://ant.apache.org
This is required for building the SCAGEN code generation tool, which is used when developing Tuscany SCA C++ components

Installing Tuscany SCA for C++

Getting Tuscany SCA for C++ working with the binary release on Linux

  1. Extract the binary tar package to a folder
  2. Set the TUSCANY_SCACPP environment variable to point to the directory that was just extracted
  3. Add the *install_dir*/lib directory to the LD_LIBRARY_PATH environment variable

Getting Tuscany SCA for C++ working with the source release on Linux

  1. Extract the source tar package to a folder <tuscany_sca>
  2. The following environment variables are required:
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
    • AXIS2C_HOME=<path to axis2c version 0.92>
  3. Build the source with the following command sequence:
    • ./configure
    • make
    • make install
    NOTE: If you don't provide a --prefix configure option, it will by default install into /usr/local/tuscany/sca

Getting Tuscany SCA for C++ working with the binary release on Windows

  1. Unzip the supplied zip file to a folder
  2. Set the TUSCANY_SCACPP environment variable to point to the directory that was just unzipped
  3. Add the *install_dir*\bin directory to the PATH environment variable

Getting Tuscany SCA for C++ working with the source release on Windows

  1. Unzip the supplied source zip file
  2. The following environment variables are required:
    • TUSCANY_SDOCPP=<path to installed Tuscany SDO>
    • AXIS2C_HOME=<path to axis2c version 0.92>
  3. You must have set up the environment for Microsoft Visual C++ tools. The build command will call vcvars32 to set the environment. Ensure the directory containing this is on your path. This will be where you installed the compiler.
  4. Build the source:
    • cd <to where you unzipped the source>
    • build
    This will build all the projects and put the required output into the 'deploy' directory

    Alternatively, open the workspace tuscany_sca.dsw in Visual Studio 6 - you can build projects individually or build the samples to rebuild all the projects
  5. Set the TUSCANY_SCACPP environment variable to point to the 'deploy' directory that was just created

Samples

SCA Technology samples Simple samples that emphasize how to to use Service Component Architecture technology. Follow the instructions on the samples Getting Started page to build and run the Tuscany SCA samples

User Guide Documents

Creating and building a Tuscany SCA C++ component A document that describes how to create, build and run a Tuscany SCA C++ component.
Enabling Web Service access to your Tuscany SCA C++ component A document that describes how to expose a Tuscany SCA C++ component as a Web Service via an SCA Web Service Entrypoint.

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.

 

 

 

Thank you for your interest in Tuscany.

-The Tuscany Development Team