The Client Toolkit Tutorial

Introduction

These pages introduce the OGSA-DAI Client Toolkit, a Java API providing the basic building blocks for OGSA-DAI client development. Using these building blocks, a developer can construct anything from a basic query client to a complex distributed data integration client with relative ease. The Client Toolkit minimises the specialist knowledge required to interact with OGSA-DAI services and shields the developer from future changes.

The OGSA-DAI Client Toolkit supports interaction with OGSA-DAI services compliant with OGSI, WSRF and WSI.

The main concept of the Client Toolkit is that of the activity. An activity dictates an action to be performed by an OGSA-DAI service. OGSA-DAI provides many different types of activity to perform operations such as SQL queries, XSL transformations and FTP data delivery. A sequence of one or more activities can be chained together to form a request. The Client Toolkit provides a simple mechanism for constructing and processing requests. The steps involved in a typical interaction are summarised below:

  1. Locate an OGSA-DAI data service
  2. Construct a number of activities
  3. Chain them together to form a request
  4. Process the request using the data service
  5. Process the results of the activities

The remainder of these pages consists of practical examples with sample code. Starting with a basic query, the examples become progressively more complex, ending up with a distributed query data integration scenario. At the bottom of this page is a list of prerequisites that should be satisfied before following the examples.

Prerequisites

  1. The libraries in OGSA-DAI/lib are in your CLASSPATH: Note that all paths are relative. When you compile your Java code your current directory must be OGSA-DAI.
  2. We assume that OGSA-DAI services are running on http://localhost:8080/ogsa/services.
  3. MySQL and Xindice test databases are set up with the OGSA-DAI example data - how to set up these databases is described on these pages.
  4. The MySQL database can be accessed via:
  5. The Xindice database can be accessed via:

Examples

The following pages contain the following:

See the full list of Client Toolkit Examples.