Available SCA samples

The following sample applications are supplied with STC SCA:

Restaurant

This sample provides a simple SCA composite named Restaurant, which is comprised of five components:

The test.Client exercises this interface by calling getMenus and getBill operations. This results in messages passing to the appropriate components in the composite across the local wires (Java binding).

Restaurant - RMI Service

This sample extends the Restaurant sample by replacing the local service binding with an RMI binding. So a Java client can call the service exposed by the SCA application using an RMI client.

Restaurant - RMI Reference

This sample splits the initial restaurant sample in two composites:

The reference specified in the restaurant composite file include an RMI binding which targets the bill composite.

Restaurant - Script

This sample is the same as the simple restaurant sample except that:

Restaurant - Composite

This sample splits the initial restaurant sample into two composites:

Weather - Simple Weather

This sample provides a simple SCA composite named SimpleWeather.

It is made up of only one component, implemented with Java and exposed as a Web service.

The associated service returns the current weather for a given city. A WSDL interface is provided and forced through the composite file.

Weather - RMI Service and WS Reference

This sample uses the SimpleWeather composite to build an application with higher value. It provides the weatherconditions and forecast for the next days.

The WeatherApplication composite references SimpleWeather as an external web service. This referenced service must be created in another project using the Simple Weather sample.

It is made up of two components.

This application exposes only one service, through an RMI binding.

Weather - Web Application

This sample completes the RMI Weather Application sample by making it available as a web application (using the .widget implementation of Apache Tuscany).

The application references the SimpleWeather sample as an external web service. It adds the following elements to be accessible with a simple Web browser: