OGSA-DAI WSRF Distribution (OGSA-DAI WSRF 1.0)

This OGSA-DAI distribution provides a WSRF based service interface, using the Globus Toolkit 4 WSRF implementation.

Contents

Prerequisites

The deployment and use of the OGSA-DAI WSRF distribution will be easier if you are already familiar with:

Prerequisite Software

To use OGSA-DAI WSRF you will need the following software:

Prerequisite JARs

If you have an OGSA-DAI WSRF binary distribution then you will need the following JARs only if you intend to use the associated functionality.

If you have an OGSA-DAI WSRF source distribution then you will need all the JARs.

OGSA-DAI Functionality JAR Package Name URL
File-related activities jakarta-oro-2.0.7.jar Jakarta Oro 2.0.7 (Note that 2.0.8 has not been tested with OGSA-DAI) http://jakarta.apache.org/oro
XML database-related activities xmldb.jar Initial Public Release Available in Xindice - http://xml.apache.org/xindice
Indexed file-related activities lucene-1.4-final.jar Lucene 1.4 http://jakarta.apache.org/lucene

Data Resource Drivers

The Supported Data Resources page lists the data resource-specific JARs that may be be required depending on the databases you wish to expose and additional functionality required. These database drivers have all been tested with OGSA-DAI.

Build the Binary Distribution

If you have downloaded the binary distribution then skip to Deploying OGSA-DAI WSRF below.

If you have the OGSA-DAI source distribution you will need to generate a binary release. You can do this as follows:

  1. Firstly, you must get all these JARs and put them in the lib directory.
    OGSA-DAI Functionality JAR Package Name URL
    File-related activities jakarta-oro-2.0.7.jar Jakarta Oro 2.0.7 (Note that 2.0.8 has not been tested with OGSA-DAI) http://jakarta.apache.org/oro
    XML database-related activities xmldb.jar Initial Public Release Available in Xindice - http://xml.apache.org/xindice
    Indexed file-related activities lucene-1.4-final.jar Lucene 1.4 http:jakarta.apache.org/lucene
  2. Set a GLOBUS_LOCATION environment variable to point to the location of your GT4 distribution. For example, under UNIX, enter:
    $ export GLOBUS_LOCATION=/path/to/Globus/directory
    
  3. Now run the following target to build the OGSA-DAI binary distribution:
    $ ant createBinaryDistribution
    

    Progress messages will appear and if there are any problems - for example missing JARs - then you will be notified.

  4. When complete, you will have a ZIPped, TARred binary distribution within your OGSA-DAI source distribution directory. You will also have a binary directory containing the binary release.
  5. You should now change into the binary directory:
    $ cd binary
    

Deploying OGSA-DAI WSRF

The OGSA-DAI WSRF binary distribution can be deployed onto the GT4 container or Apache Tomcat:

Deploying OGSA-DAI WSRF via the Command-line

Insert the Prerequisite JAR Files

First, download the prerequisite JAR files (listed above):

and put these into the OGSA-DAI binary distribution lib directory. (IF you build your binary from a source distribution you will already have these JARs and they will have been inserted into the binary lib directory as part of the build).

Deploying OGSA-DAI WSRF onto GT4

If you wish to deploy OGSA-DAI WSRF onto the GT4 Web services container then keep reading. If however you want to deploy OGSA-DAI WSRF onto Apache Tomcat then skip to the next section.

To deploy OGSA-DAI WSRF onto GT4:

OGSA-DAI WSRF will then be deployed.

Deploying OGSA-DAI WSRF onto Tomcat

Before you can deploy OGSA-DAI WSRF onto Tomcat you will need to deploy GT4 onto Tomcat. You can do this as follows, if you have not already done so:

Now, to deploy OGSA-DAI WSRF onto Tomcat, run the following from within the OGSA-DAI binary distribution directory:

$ ant deployTomcat

OGSA-DAI WSRF will then be deployed to Tomcat.

Note: as an alternative to setting CATALINA_HOME you can specify the Tomcat location at the command-line as follows:

$ ant deployTomcat -Dtomcat.dir=/path/to/Tomcat/directory

Deploying OGSA-DAI WSRF using a GUI

Deploying OGSA-DAI WSRF onto GT4

If you wish to deploy OGSA-DAI WSRF onto the GT4 Web services container then keep reading. If however you want to deploy OGSA-DAI WSRF onto Apache Tomcat then skip to the next section.

To deploy OGSA-DAI WSRF onto GT4:

Deploying OGSA-DAI WSRF onto Tomcat

Before you can deploy OGSA-DAI WSRF onto Tomcat you will need to deploy GT4 onto Tomcat. You can do this as follows, if you have not already done so:

Now, to deploy OGSA-DAI WSRF onto Tomcat:

Exposing Data Resources using OGSA-DAI WSRF

To expose a data resource via an OGSA-DAI WSRF data service is a three-step process:

  1. Deploy an OGSA-DAI data service. This data service initially exposes 0 data service resources.
  2. Deploy a data service resource. The data service resource contains information about a data resource and the activities clients can perform on that data resource via a data service.
  3. Add the data service resource to a data service. This instructs the data service to expose the data service resource and so allows clients to interact with the data service resource - thereby interacting with a data resource.

Our pages on deployment (which can be found here) provide more information.

For those who want a quick introduction to OGSA-DAI WSRF we recommend:

  1. Deploy a new data service as described here.
  2. Startup your Web services container.
  3. Test the data service resource using the ListResources client and ensuring that the service is available and exposes 0 data service resources. The ListResources client is described here.
  4. Shutdown your Web services container.
  5. Deploy a new data data service resource as described here.
  6. Add the data service resource to the data service as described here.
  7. Startup your Web services container.
  8. Submit a perform document to the data service resource exposed by your data service using the End-to-end client. The End-to-end client is described here.

Undeploying OGSA-DAI WSRF

The OGSA-DAI WSRF binary distribution can be undeployed from the GT4 container or Apache Tomcat:

Undeployment erases all OGSA-DAI XML Schema, OGSA-DAI-specific JAR files and configuration files from the destination.

Undeploying OGSA-DAI WSRF via the Command-line

Undeploying OGSA-DAI WSRF from GT4

To undeploy OGSA-DAI WSRF from GT4:

OGSA-DAI WSRF will then be undeployed.

Undeploying OGSA-DAI WSRF from Tomcat

To undeploy OGSA-DAI WSRF from Tomcat:

Note: as an alternative to setting CATALINA_HOME you can specify the Tomcat location at the command-line as follows:

$ ant undeployTomcat -Dtomcat.dir=/path/to/Tomcat/directory

Undeploying OGSA-DAI WSRF using a GUI

Undeploying OGSA-DAI WSRF from GT4

To undeploy OGSA-DAI WSRF from GT4:

Undeploying OGSA-DAI WSRF from Tomcat

To undeploy OGSA-DAI WSRF from Tomcat:

Where Does Stuff Go?

This section describes the locations of OGSA-DAI related files after deployment on Tomcat or GT4.

Under GT4, OGSA-DAI resides in the following places:

Under Tomcat, OGSA-DAI resides in the following places:

The OGSA-DAI WSRF configuration files residing in the etc/ogsadai_wsrf directories are as follows: