Jump to: navigation, search

SCA/Components/SCA Samples

You can test the SCA Composite Designer and see some possibilities of SCA through the following samples.

This section provides a step-by-step description for creating and testing a sample project.

How to use samples

Register Tuscany for SCA samples

First, you have to install Apache Tuscany to be able to test the sample applications. See the first section on Installing Tuscany to test your SCA applications. You can download it on: (http://incubator.apache.org/tuscany/sca-java-releases.html)

Then, you have to register Tuscany for SCA samples:

  1. Select Window > Preferences....
  2. Select SOA Tools > SCA Tools.
  3. Set the Tuscany directory
  4. Click on the Ok button.Scaexamples4.png

Creating samples

Different samples are available to test the SCA Composite Designer, they are described in the following sections. The samples projects are automatically created :

  1. Select File > New > Sample....
  2. Select SCA > SCA Examples and click Next.Scaexamples2.png
  3. Select one of the examples and click Next.Scaexamples1.png
  4. Set the Project name.
  5. Click Finish. The project is created with the following structure (for the first sample):Scaexamples3.png

Restaurant sample

Restaurant - RMI Service

Restaurant - RMI Reference

Restaurant - Script

Restaurant - Composite