Tuscany SCA Native - SCA Binding Extension
This document describes the deployment and use of the SCA
binding support in the Apache Tuscany SCA Native runtime.
The SCA binding allows components to be invoked via an
implementation specific protocol. Currently, in the Tuscany SCA binding
extension, the Axis2/C Web Service binding extension
is used to provide the implementaion, so calls use the SOAP protocol
The HTTPDBigBank sample demonstrates the
use of the SCA binding extension.
Installing the Tuscany SCA Binding Extension
Getting the Tuscany SCA Binding Extension working with the binary release on Linux and Mac OS X
- Ensure the AXIS2C_HOME environment variable is set to the Axis2/C installation
- Deploy the Axis2/C Web Services extension by following the deployment steps
- Ensure the Axis2/C Web Service extension and SCA Binding extension libraries are available
on the LD_LIBRARY_PATH environment variable on Linux and the DYLD_LIBRARY_PATH environment variable on Mac OS X
Getting the Tuscany SCA Binding Extension working with the source release on Linux and Mac OS X
- You will need the Tuscany SCA and SDO libraries - follow the instructions
here to build the SCA libraries and default extensions
- The following environment variables are required:
- TUSCANY_SCACPP=<path to built Tuscany SCA>
- TUSCANY_SDOCPP=<path to installed Tuscany SDO>
- Build the SCA Binding source only with the following command sequence:
- cd <tuscany_sca_install_dir>
- ./configure --prefix=$TUSCANY_SCACPP --enable-scabinding --enable-cpp=no --enable-wsbinding=no
- make
- make install
NOTE: If you don't provide a --prefix configure option, it will by default install into
/usr/local/tuscany/sca
Getting the Tuscany SCA Binding Extension working with the binary release on Windows
- Ensure the AXIS2C_HOME environment variable is set to the Axis2/C installation
- Deploy the Axis2/C Web Services extension by following the deployment steps
- Ensure the Axis2/C Web Services extension and SCA Binding extension libraries are available
on the PATH environment variable
Getting the Tuscany SCA Binding Extension working with the source release on Windows
- Unzip the supplied source zip file
- The following environment variables are required:
- TUSCANY_SCACPP=<path to built Tuscany SCA>
- TUSCANY_SDOCPP=<path to installed Tuscany SDO>
- 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.
- 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 at <tuscany_sca_install_dir>/projects/tuscany_sca/tuscany_sca.dsw
in Visual Studio 6 or at at <tuscany_sca_install_dir>/projectsvc7/tuscany_sca/tuscany_sca.sln
in Visual Studio 7.1 - you can build projects individually
or build the samples to rebuild all the projects