Tuscany Welcome to Tuscany das

This document proves a high-level overview of the Java DAS (Data Access Services) subproject of the Apache Tuscany incubator project.

To get started with Java DAS, follow the downloads link and pick up either a binary or source distribution. If you are working from a source distribution, you can follow the general instructions for building the whole of the Tuscany java projects, or you can follow the intructions within the DAS Java overview to build and explore just DAS java.

General DAS Documentation

Title Description
DAS White Paper: The Data Access Service How to access relational data in terms of Service Data Objects
JDJ DAS Article How to access relational data in terms of Service Data Objects

Currently, the project's code base includes an implementation of a DAS RDB (relational database) with following key features :

DAS Java Project Structure

The DAS RDB project is divided into three parts:

  1. das.rdb contains the DAS interfaces and the RDB (Relational Database) runtime implementation.

  2. samples.das provides sample applications based on DAS.

  3. distribution.das provides DAS binaries distribution with required dependencies.

  4. distribution.das-samples provides DAS samples distribution as a ready-to-deploy war file.

DAS high level class diagram

DAS High level class diagram

Tuscany Build Environment Setup

DAS is a subproject of the Tuscany project. If you check out and build the whole Tuscany Java project, you will have also built the DAS subproject. If you want to work with the DAS project, without the rest of Tuscany, skip to the next section.

To build the whole Tuscany project follow these instructions.

DAS Java Build Environment Setup

If you want to work with the DAS project alone, without the rest of Tuscany, proceed with the following steps.

  1. Set up your environment using the instructions for building the whole of Tuscany, but only download and install Java 5, Maven and Svn

  2. Make sure 'mvn' and 'svn' commands are in your PATH environment variable.

  3. Check out the DAS open source projects from Apache.

  1. Run "mvn" under <local tuscany dir>/java directory to install POM files from the root project to the local repository

Building Javadoc for DAS

In order to build DAS Javadocs, you will need to build the a specific maven profile called "javadoc"

Dependency Jars

The DAS.RDB project has a dependency on SDO and requires the following SDO runtime jars to build

The SDO.IMPL project have dependencies on the following EMF (Eclipse Modeling Framework - www.eclipse.org/emf) runtime jars to build:

DAS provide sample a CompanyWeb scenario where it exposes some of the DAS Features integrated in a J2EE webapp.

Follow the steps below to be able to run the samples in a J2EE webserver (in our case Apache Tomcat)

From the source repository

There are also some sample applications that use a mix of SCA, SDO and DAS. See "Running the Samples" on the Java project page for details.

From a DAS Sample distribution (starting with M2):

DAS is currently providing two sets of unit tests

Below we are going to describe how you can exercise these two sets of tests, and we recommend you running them after contributing code/patches for DAS to validate that your new changes are not introducing any regressions.

Running DAS tests as part of the build

Running DAS CompanyWeb tests in tomcat